It is interesting to note what happens to espionage cases in the United States. If you spy for China, or Cuba, or Iran you will be exposed, excoriated in the media, locked up and denied bail, convicted, and sentenced to many years in a federal prison.
Spies are traitors in every sense of the word, unless, of course, if one is spying for Israel.