EDIT: From what I remember as well, every tree comes with defenses to keep beetles away. This is why trees are sappy. In order to produce sap the trees need water, and they produce their own sugars through photosynthesis (sap being a mix of water and sugar). Trees in certain areas are adapted to the length of their winters. A longer winter means more time without dealing with beetles but might also mean less time spent in dry soil.
https://www1.agric.gov.ab.ca/$department/deptdocs.nsf/all/fo...
> For example, an under-bark temperature of –37°C will kill 50 per cent of a mountain pine beetle population, even in mid-winter; however, a low temperature of –20°C in the fall, be- fore the beetles are prepared for winter, or in the spring, when beetles are start- ing to become more active, will also kill beetles if it is preceded by temperatures above 0°C. The relatively warmer temper- ature causes the larvae to start to lose its natural antifreeze.