How to stop character at corners of the edges of terrain if target is not on navmesh

Hi,

I’ve have character that runs on A* Path but when it reaches to the edge of terrain(in case target is a bit far from navmesh).
I want to stop the character from moving to that position. How do I do that?

Hi

Could you show a screenshot of the issue?