Increasing the resilience of plant immunity to a warming climate