One hypothesis invoked to explain limits to species' ranges is a mismatch in environmental conditions between the central and marginal areas of species' ranges. Low population size at the margins causes genetic drift to outplay selection locally, and limits the accumulation of genetic variance, so that adaptation is hindered locally. Earlier theoretical work shows that for a population expanding over a spatially heterogeneous environment without any geographical barriers, adaptation will fail abruptly, which establishes definite range margins only when the underlying environmental conditions change more and more severely across space, whereas an environment changing constantly results either in infinite expansion or rapid global extinction. Here, we extend the steepening-gradient hypothesis to encompass situations when environmental gradients are decomposed into selection acting on separate adaptive traits. We show that the two gradients steepen each other, particularly highlighting the importance of locally shallow gradients that could be overlooked in field studies. Finally, by decomposing the environmental gradient to selection on two adaptive traits, populations can withstand harsher environmental conditions than when selection acts on one adaptive traits alone.