A serial offender who breached a police order 10 times in just six weeks has been urged by a judge to not get in trouble again.