When the Sun nears the end of its life it will flare up and all life on earth will be burnt to a cinder. But I don't think that will happen for a while yet.
And by that time man will have found out how to transfer himself (as a group) to another planet to mess up in the same way as he (again as a group) has messed this one up.