On the edge of thermoregulation: a matter of physiology and physics