When our sun turns into a red giant, will the Earth be able to withstand the heat?
I’m sorry but no. The solar system will last for 4 to 5 billion years. Then the Sun will run out of hydrogen to fuse and it will grow into a red giant star. The planets nearest the Sun (including the Earth) will be burnt away. Fortunatly by that time some form of intelligence (humans most likely) will have spread from Earth far out into the Galaxy, or even to other galaxies. So the human race will move elsewhere and be safe. But you have nothing to worry about because that is billions of years away!