You can literally loop around endlessly up/down onto that ledge, the one way invisible walls are unnecessary and are just causing problems with the bots pathing.
As mentioned previously, bots decide on a path and they will never check if they are stuck.