Harvesting can stabilize population fluctuations and buffer the impacts of climate change