How do I make it so that the camera stays within the bounds of a hallway and not go to the other side of it?

Thanks