The best way to protect corals threatened by climate change is to conserve a wide range of their habitats, according to a new study. The finding likely applies to conservation efforts for many other species in the ocean and on land, including trees and birds.