Judge warns of 'danger on our streets'