Imho,
A Few Good Men is a great movie because, especially for 1992, it spoke directly to those gray areas.
About ten years later, after 9/11, the US established Guantanamo Bay detention camp, where in 2023 there are still people (32?) held outside of normal legal processes.
I would expect that the 32 remaining, out of almost 800 total, are a clear threat to the United States.
But is it right to keep them there? What are the moral implications of the rest of America looking away while ugly work is done with their authority and in their name?
Colonel Jessep isn't 100% wrong (Santiago's death may have saved lives, but his death shouldn't have happened), and Lt Kaffee isn't 100% right (Jessep broke the law, but people are not owed unvarnished truth without earning it).
Everyone's who's worked for a large corporation, even outside the IC, knows that many things are done in that grey area, with the expectation bosses would deny asking someone to do it. See the recent news about Union Pacific train wheel bearing inspections being pressured to pass.
To me, the balance of any system is accepting an optimal level of corruption/abuse, in order to permit efficient functioning. Grease lets things slip, yet also decreases friction.
It's ugly, sad, and terrible... but also necessary. A perfectly enforced code of laws would rapidly implode any country in the world, because it wouldn't leave room for interpretation and exceptions.