A man has been sentenced for breaching a Criminal Behaviour Order (CBO).