Agh the old "questioning American hegemony, therefore traitor" act. Please enlighten me how spying on virtually every single government on the planet (ally or not) is "unquestionably legitimate".
https://en.wikipedia.org/wiki/Realism_(international_relatio...
And while you may believe with good reason that an individual should have higher loyalties (perhaps to humanity as a whole) than to his nation state, the legal codes of the nation states obviously cannot endorse that view, as it would be destructive of their own power and their competitors will not be so altruistic.