Minecraft wiki entry for World_border, associated text: Damage
/worldborder damage buffer <sizeInBlocks>
Sets the number of blocks a player may safely be outside the world border before taking damage. The default is 5 blocks.