And it should be.Translation: most of Star Trek has been a balancing act between its pie-in-the-sky, altruistic humanism and writing interesting adventure stories.
No nation or society is all good nor even 90% good. It's how the better people in our midst struggle with their darker natures that makes both real life and fiction so interesting.