Yeah, we've got less than two billion years before the Sun expands enough to cook off our atmosphere. I suspect we will be extinct before that, however. As a collective, we're not very bright.
Really we should just be focusing on building a time machine and re-populate the pre-human past. I imagine that no matter what happens, we could just populate infinite timelines (But we are more likely to already be on that exact timeline)
That seems a bit of a long-shot. I'm not sure if it is less likely than us causing our own extinction, however.
I don't watch a lot of movies, and I recall even fewer, but there is an appropriate line in The Matrix about how a human can be smart but humans are pretty dumb as a whole. It seems to be remarkably true.
"A person is smart. People are dumb, panicky dangerous animals and you know it. Fifteen hundred years ago everybody knew the Earth was the center of the universe. Five hundred years ago, everybody knew the Earth was flat, and fifteen minutes ago, you knew that humans were alone on this planet. Imagine what you'll know tomorrow."