How to restrict the range of enemy aircraft?

How can I restrict the range of enemy aircraft? I set up an anchor area, but enemy planes still don’t fly according to my restrictions