At what point does protest against government policies pass from the legitimate into the category of aiding and abetting the enemy.
It's not an easy call. My inclination would be to say that anything that is not outright traitorous - such as spying - is legitimate. Not admirable - but legitimate. Obviously, circumstances are important. The bar is much lower whe we are at war and American soldiers are being killed.
There's a price to pay for having a free and open society. This is the price.