Sadly this really isn't the case, and there are a lot of things we can do that will permanently fuck the planet. It can't be certain that we will kill ourselves off before we cross some tipping point that will eventually turn the Earth into just another lifeless rock in our solar system.
Indeed earth has itself had a few close calls with total extinction https://en.wikipedia.org/wiki/Medea_hypothesis
99.5% of life may have died during the Great Oxidation Event. 96% of all marine life may have died during the Permian–Triassic extinction event
TBH it's no short of a miracle that we're still here.
https://youtu.be/7W33HRc1A6c?si=HqyW8mys0uNBuFdW&t=147
Humorous, but not inaccurate about what climate change means to primates. =3