"I can never join with my voice in the toast which I see in the papers attributed to one of our gallant naval heroes. I cannot ask of heaven success, even for my country, in a cause where she should be in the wrong. Fiat justitia, pereat coelum. My toast would be, may our country always be successful, but whether successful or otherwise, always right."
-John Quincy Adams
John Q. Adams wrote this in a letter to his father John Adams where he expressed he'd rather America be on the side of the righteous, than be successful and wrong. It's a shame that further presidents didn't share the same philosophy. The American government committed many sins in the "fight against communism" and later did the same with the Wars on Terror.