There's no way out. Even TNG predicted WWIII entire global population and for humanity to suffer its most embarrassing chapter to get out of it:
https://memory-alpha.fandom.com/wiki/World_War_III
There are other modes of life, based on trust of mankind, instead of fear of it. That's the other thing TNG shows - all those people in Starfleet - they aren't being paid to be on that ship. They're trying to show that humanity is capable of post-capitalism. It doesn't have to be this way.
(That's the planet Stallman lives - or at least wants to)