If the State refuses to prosecute an act, then the act is effectively legal.
Cops, soldiers and many other groups may be able to break the law and get away with it, but that doesn't make what they do legal.