You are probablt doing so that the unit enters region, then the unit its moved to another rect, and if a unit enters that rect its moved to the other region back. You see this continues unlimited, you should better do so:
Unit enters x1
Instantly move unit to x2
Unit enters x3
instantly move unit to x4 |