Top judge warns of high terror threat