I've played enough video games to know that there are invisible walls everywhere

fence
fence

It’s actually a decent design when considered in context: it is most likely intended to keep vehicles off the path.