Life on Earth will come to an end sooner, in mere a billion years as sun starts slowly heating up during that time.Well, in about 5 billion years our sun will start to run out of hydrogen to fuse, so it will enter its dying period of another 2-3 billion years.
So the part about life coming to an end in 5 billion years might actually be inspired by reality.