‘You are becoming a real pest’: magistrate tells repeat offender