The limitation is always the lower one of the two, meaning your actual IAS must be below Vmo and your actual Mach must be below Mmo.
Let us consider this case: you accelerate all the way to Vmo and climb at that fixed IAS. Two things are happening now:
The TAS is increasing because the air is getting less dense.
The speed of sound is decreasing because the ...