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.