Added warning message when coming close to world-border.