That's victim blaming, even when it's in reference to yourself.
Are we supposed to not speak publicly about being harassed? I feel like a culture of silence only allows bullying to perpetuate, and puts the onus on the victim to change their behaviour, and not the harasser's.
Of course, ideally some authority should stop the harasser. But you probably don't want to wait until it gets severe enough for that to happen.