I believe a navmesh only has the parameter to restrict large creatures from certain areas. I don't think that can be modified to include other NPCs.
X Markers have certain flags you can set but again there isn't a setting to restrict a particular type of NPC.
Depending on how the room/area is set up and what else you have the NPCs doing, one suggestion is creating two different sandbox markers on opposite sides of the room and restricting the radius so that they dont cross into the opposite area. This obviously isnt perfect because it deals with a circular area but thought I'd throw it out there.
- Mal