Making the pathfinding avoid a certain area even if it is cancollide off

I am making an NPC that pathfinds to a certain point in the map, however will avoid going through a certain area (a part) even if cancollide is off if a numbervalue meets a certain requirement.

I tried looking at PathfindingModifiers but they seem to do the exact opposite, allowing pathfinding to not take obstacles into account and walk into them. Does anyone know a way to accomplish this?