Beneficial and Detrimental Effects of Thermal Adaptation