Add "on entity teleports" world script event. Now you can stop endermen from teleporting.