Simple, see who is getting the benefit by what you are doing.
The people? ILLEGAL.
The government? LEGAL.
I am not saying what people do to benefit others are always legal, I am just saying if the illegal thing that was done by the government; illegal things can turn legal…
Let me give you a simple example, if you cheat someone out of their money? FRAUD! If the government cheat out of your money? LEGAL~
Another example, if you keep people stay healthy and away from hospital, ILLEGAL. Government or doctors make people ill, sick and always go to the hospital, LEGAL.