You can't punch someone for following you in a public space, and the police can't do anything about that either. Following someone and speaking to them is not a crime. Both IRL and on the internet. You must develop ways to deal with it.