Yes, the cops were there because of an illegal law but you don't pull a gun on cops no matter what. All you'll accomplish is getting yourself shot. There are ways to fight illegal laws but getting killed isn't a smart one. The guy was an idiot.
“In a time of deceit telling the truth is a revolutionary act.” ― George Orwell
It's not over when you lose. It's over when you quit.