From proteins to species ranges: a framework for understanding thermal adaptation during range expansions