There are lots of judges who would OK blatantly illegal measures.  Four of them are on the US Supreme Court and actually voted against the most clear language in the 2nd Amendment to the US Constitution.  There are many others just as bad, which proves the absolute need for Americans to maintain the means of their own self-defense.