Court orders stalker to avoid Harry Styles