Hey there, if the wall is invisible you can do a nav mesh modifier volume and set the area class to NavArea_Null. That way the AI will always ignore the area the the volume takes. You can press P to see the effect it has on the nav mesh.
I tried it, but it still doesn’t affect the AI, the AI still follow me to the end of the Nav mesh (Not modifier) and the Nav mesh modifier, leaving the zone where he can move.