A new study suggests Earth could escape being swallowed by the Sun, but scientists say the planet will become too hot to support life billions of years before that.