Keep the door closed
There are parts of your house where you can remove items that might harm the inquisitive baby.
But there are times like the early todler years when you should keep baby out. Open toilets are a magnet for the child facinated by floating objects, yet todlers are top heavy & may tople in & drown trying to retreive a toy. I don't trust toliet locks or all family mbrs using them correctly.