We may kill our planet much sooner than being consumed by the sun.

5 billion years is almost an infinite number for the human race.
You are right. Forget about 5 billion years, we may not even survive for another 100 years, at this rate. Almost 1% of the forests are being cut down annually and the human population is increasing at a rate of around 1.5% per year. Populations with high IQ (Koreans, Chinese, Europeans.etc) are declining in number and low IQ people (Arabs, Africans.etc) are increasing their population.