To restrain someone or something from entering a place or condition.
To refrain from entering a place or condition.