Plugin solution: YEP Yanfly region restrictions: simply add upper and lower lines as non walkable regions, defined in the plugin.
Alternative A: alter a B/E tileset to have a transparent tile, assign that tile as X (non-walkable) Proceed to lock out above and below paths with those tiles.
Alternative B: in case you need the tiles and cant afford to put one as transparent for mapping purposes you can put empty "same as player" events in the upper and lower rows so you lock the player into the linear path.
Hmmm... The way I see it, If the player isn't even allowed to move back the way he came from, why not just make him move automatically via set path? I don't see a reason for the player to be controlling this himself when the only possible choice is right.