A crossing theorem for distribution functions and their moments