"If it were a 20-year-old under the exact circumstances, I probably would have detained,” the judge said.