The officer made the decision to ignore the law when making the unlawful stop.
The woman was acting in rational self defense to try to evade her attacker, the fact that her assailant had a badge is not relevant.
Protests against the woman's actions are in reality a call for an authoritarian police state.