It really depends on the region of Mexico you go to, but generally speaking the winter months are best. Summer months in places such as Baja California can be near unbearable for example.
Remember the hurricane season - hurricanes can be found anytime from July to November.
Here's some more advice on travel to Mexico