The judge categorised Ewan Blair as a dangerous offender