Seasonal temperatures affect the stability of insect populations