But as they chose not to arrest her, this shields every other woman who might want to say similar. The argument being: if JKR can say a man is a man with impunity, then why can't anyone else?
So her making these statements of truth was a win either way. But being able to mount a solid defence in court, if needed, was essential to this strategy working.
The people who wanted JK Rowling arrested knew her views and comments are legal. If the police arrested her and she won in court, that would set a precedent and invalidate any attempt to use that legislation to prosecute people with similar views, which activists were hoping to use it for.
But also, her not getting arrested does the same.
So she was in a win-win position.
But yes I get and agree with your point. And it also highlights an important aspect often ignored in all this. The courts decide a person's guilt irrespective of police action, case law builds up around laws that are broad and easy to misinterprete.