I'd strongly recommend the book "The Beginning of Infinity" by David Deutsch for a wider perspective on what you've stated. Humanity has always had problems and been in some ways on the verge of extinction perpetually, but we as a species find ways to solve these problems.
It's weird how many users resort to instant doom and gloom (like not having kids?) when its another problem that will take hard work to solve. Just a quote from his book -
"It is inevitable that we face problems, but no particular problem is inevitable. We survive, and thrive, by solving each problem as it comes up. And, since the human ability to transform nature is limited only by the laws of physics, none of the endless stream of problems will ever constitute an impassable barrier. So a complementary and equally important truth about people and the physical world is that problems are soluble. By ‘soluble’ I mean that the right knowledge would solve them."