I haven't had this happen to me yet, I always lock my door. I constantly fear the worst so everyone has to knock to get in. My parents are really good and never use the door bell, the knock because either my DD or someone is sleeping at some point.

If it were to happen to me I would remind them at the first incident - then create a open/closed sign for the front door. CLEAR message.