That’s a pretty dark view. I have to disagree with you. Most nations historically corrected themselves or in certain cases they were corrected by other nations...
Our Framers insisted that the purpose of government is to secure our unalienable, Natural Rights. That is the essence of justice. They also wrote that free government demands the consent of the governed. That is the legal.
It is the comingling or equating of the just with the legal that allows minds with totalitarian leanings to sink nations into misery. It ensconces majority rule, the stronger over the weaker with the patina of legitimacy. It is the rejection of this distinction between the legal and the just that dignifies all forms of tyranny.