The "illegal and dangerous" bit comes from the fact that your installation poses the risk of contamination of your (and the public's) drinking
water...
Pipe fittings generally require the use of TWO wrenches to install and remove. In your case, a large adjustable wrench on the valve, and similarly on...