Repeatedly “almost” going extinct is precisely why humans no longer resemble lesser primates. Our species is built on repeatedly almost going expense, complete with chemical pathways to introduce pathogens through the digestive system and exogenate the pathogens into our DNA.
This species has amused itself to death.