It's not straightforward - that's exactly the point of the tu quoque fallacy.
https://en.wikipedia.org/wiki/Tu_quoque
As an individual American who is not involved in intelligence or military work, I can condemn such actions by any nation while maintaining moral consistency.