Metabolic theory, life history and the distribution of a terrestrial ectotherm