Completely blocking off a room for specific people?

It should; “Instead of doing something when not unmaidenly behavior” will also work, oddly enough. (Discussed here; as I say there, it can be easier to envision the possible combinations if you give your kinds of actions names like “behaving unmaidenlily,” so “Instead of doing something when not behaving unmaidenlily” reads sort of like English. Except for the whole problem about turning “unmaidenly” into an adverb.)