As climate change roasts cities around the world, history shows that air conditioning can be the difference between life and death for vulnerable people – but it comes at a cost.