It's extreemly rude and impertinent behavior. It will
not be tolerated by some dog, eventually.
I recall 2 yound men who thought it was very "macho" that their ignorant, unsocalized, 6-9 month old male wanted to hump everything in sight. In fact, they had been warned.
Yet, the next time, I saw them, they'd come up behind me (as if to pass

). Sable had him pinned on his back by his little vocal cords in 2 seconds. Not a growl out of her, just pinned him to the ground. The smirks drained their faces.
I said, "Ooooh, guess it's not going so well, deterring that rudeness, eh?" then to Sable, "Good thing you're so generous today." (Can you imagine them coming up on us like that?)
Don't hesitate to fix the problem. He'll pick up quickly.