God is gonna end it when he wants to. It says in the bible that judgment day is gonna come and everyone will see The Lord coming down from Heaven and taking believers with Him back to heaven and unbelievers stay on earth.. Idk what happens then, but in the end the world and sun will get burned and everything else...
The odds, I believe, favor a collision. Impact craters are scattered about the surface of our planet, a pretty good indicator if history is indeed repetitive. Yup, catastrophic impact, obliteration of this magical place.. That's my call.
We will polute the Earth to the extant that we humans will die off in perhaps a few hundred or 1000 years. The Earth however, will continue on. The planet will cease to exist after 1. getting hit by a meteor (not likely in our lifetime since its lasted 4 billion years so far) or 2. annihilated by our sun when it goes nova (perhaps 2 billion years).
But the heavens and the earth, which are now, by the same word are kept in store, reserved unto fire against the day of judgment and perdition of ungodly men. The Lord is not slack concerning his promise, as some men count slackness; but is longsuffering to us-ward, not willing that any should perish, but that all should come to repentance. But the day of the Lord will come as a thief in the night; in the which the heavens shall pass away with a great noise, and the elements shall melt with fervent heat, the earth also and the works that are therein shall be burned up. Seeing then that all these things shall be dissolved, what manner of persons ought ye to be in all holy conversation and godliness, Looking for and hasting unto the coming of the day of God, wherein the heavens being on fire shall be dissolved, and the elements shall melt with fervent heat? Nevertheless we, according to his promise, look for new heavens and a new earth, wherein dwelleth righteousness. (2 Peter 3:7, 9-13 KJV)