How to prevent movement if BOT can't move to a high point?

I use variable “HasPartialPath” to prevent it.