'You not only put yourself in danger but posed a significant danger to the public,' judge says