Earth is not quite 5 billion years old. For about half that time, it's been besieged by little critters generally referred to as "life."* Every now and then, they get nearly wiped out in mass extinctions, which happens when you're riding shotgun on a planet with active tectonics that hangs out in a shooting gallery of a solar system.
Things return to "normal" for a while, until the next event. It's the way of things (assuming your calendar operates in terms of hundreds of millions of years.)
People have been around for a relatively short time. We almost got wiped out about 75 thousand years ago when a supervolcano went ker-BLOOEY in the Pacific, but enough people made it for us to make it.
I'd be surprised if we succeed in colonizing an airless space (like the moon) or something with a very thin atmosphere (like Mars), especially if we don't have the technology to throw our own garbage in a bin and drive less often. But, that's just me.
The GOOD news is the really, really bad stuff won't happen (about 100 times longer than the recorded history of mankind (about 10,000 years (and ten months or so), but here's a sneak preview for the "Hakuna Matata" crowd:
In another billion years, things will get too hot for liquid water, so most life will be wiped out anyway.
About three billion years later, our sun will expand and wipe out Mercury, Venus, and us, prior to reducing itself to a lifeless husk.
*Note the search for intelligent life on Earth continues, although they're making great progress with Dolphins....