DD is three. I lock her in my bedroom while I shower and set the house alarm to panic so if she opens a door I will hear it. She never leaves the room, although she knows how to unlock doors. I just tell her the alarm is on and she can't open the door. She's heard what happens when she opens outside doors and it's on. It scares her, so she doesn't do it.