it is decided based on clock skew and the setup time of the inputs and the delays of the various paths....
also there is a trade off between the clock frequency and power consumption... higher frequency leads to higher power dissipation....
It depend on delays in interconnects, power consumption, and the physical issules limiting synchronization and data transferts like, crosstalk, interference, coupling radiation, skew.