New research points to how the world could stop short of the brink of disaster. But it won’t be easy.