I have to defend JWM. It’s rude for people to come unannounced so it’s appropriate to tell them to take a hike.
I live in a gated community now; but before, when a stranger would ring the door bell, I would tell them that I’m not interested and please don’t come back, then close the door.
The Realtor might be trying but I don’t have time to listen to unwanted sales pitches.