How do i prevent the player from walking off an "edge"

in my game I am attempting to make a cave segment for the player to walk around in. however i am having troubles with making a ledge. for some reason the player can go off the side and walk onto the other floor. i thought that adding some shadow would be make it easier to differentiate the separate floors however the player can still "jump" from one to the other. if anyone knows how to make it so the player can't walk off then it would be great!
Capture.PNG
(this is what i'm talking about with the whole "the player can jump from one floor to the other" deal, they can walk from left to right with nothing stopping them. how do i fix this?)
What tileset did you use (custom or one of the defaults?) and what tiles from that tileset?

The default tilesets are already configured for a two-level dungeon and you'll need an override tile like a ladder to walk off the ceiling tiles.

So we need to know what you used in the map to figure out where the problem is coming from.
By default RMMV doesn't make the difference between levels if you use the same tiles for the lower and uper levels.
In those case, what I do is add transparent tiles (B, C, D or E) with direction restrictions so the player can't go left or right.
database - tilesets - select this tileset and configure not passability, but directional passability.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-prevent-the-player-from-walking-off-an-edge.96071/