No, that’s not what the Golden Rule said. It says to treat people the way you want other people to treat you. How you treat yourself is your own business.
There’s also a certain amount of making reasonable assumptions here. Obviously the intent is to get people to treat each other fair & well, not to set a logic trap and interpret this aphorism literally to mean you should hurt people if you’re okay with being hurt, even when you know other people don’t want to be hurt. Most people don’t want to be hurt. Obviously.