Minecraft wiki entry for World_border, associated text: Entities cannot spawn naturally outside the world border. They persist without taking damage if they spawned before the world border gets shrunk by a command.