Toby Ord talks about this very problem in his book "The Precipice: Existential Risk and the Future of Humanity" [1] -- I totally recommend it if you are into this subject, although I have to admit I am pretty pessimistic after reading it, as it seems that the only way to avoid existential risk is by preparing through international collaboration at a global level. Precisely what I do not think will happen any time soon in the current climate.
[1] - https://www.amazon.com/Precipice-Existential-Risk-Future-Hum...