you can use collision meshes to implement such things. See the Virtual Reality demo where a collision mesh restricts the movement inside the room. You can use more complex meshes for stairs and holes.
I tried to modify the collision object in this scene, made some stairs, but I still could
walk through, The limit when the collision object ends works.
But going up or falling down doesn’t happen.
Do I need to extend in the puzzle?