How to force AI to don't walk in certain areas?

Yes but I’d like it to walk in if there’s no other path to reach the player.

I know it’s nav modifier volume I need to use but I can’t set it up properly, I’ll figure it out soon.

What I really can’t find the logic to is:

I throw a glowstick which hurt the AI if in it’s radius, How can I tell the AI to walk away when it’s in contact, I’ve tried, I can tell it to walk to it but can’t figure out how to do the opposite.