In hammer I think there should be a camera collider clip brush used to stop the camera from moving past a point like the edge of the map. I think this would be useful for maps that are big and open and dont want to show some areas.