If you think that conditions are overlapping, try adding "else":
EnemyAI X < Player.X = EnemyAI set dir to 0 Moving right
Else
EnemyAI X > Player.X = EnemyAI set dir to 180 Moving left
Else
EnemyAI Y < Player.Y = EnemyAI set dir to 90 Moving down
Else
EnemyAI Y > Player.Y = EnemyAI set dir to 270 Moving up
If this doesn't help, could you share your capx?