It’s legally impossible to defend yourself against a cop, on or off duty. You will be killed or charged and imprisoned if you survive, the cop will face no consequences and they can effectively kill whoever they want.
Rape victim k!lled her rapist after his release.
She got arrested and her statement was -
“He raped me, not the State. Who gave you the right to forgive him without consulting me?”