Apparently, YK Osiris was headed down a dark path as a youth that he turned around to become the successful artist he is today.

The 2019 XXL Freshman recently sat down for an interview with Rolling Stone for an article published on Friday (Oct. 18), where he revealed he had a criminal record as a minor that included armed robbery.

"When I was 14, 13 years old. . . I was hardheaded, going to jail, back and forth, man, stealing, robbing," the Jacksonville, Fla. artist confessed. "I was trying to be cool. I be trying to fit in. I was trying to survive at the same time. I was trying to get what I want to get in life. If I can’t get it that way, I’m gonna get it this way. That’s how I felt about it, and if you didn’t give it to me I’m going to get it."

That all changed when he was given an ultimatum by a judge following an arrest for armed robbery.

"When the judge told me I’m going to get indicted if I come back. That [was the] last time, I remember that day," he recalled. "She said, 'If you come back, I’m going to indict you.'"

The rest, they say, is history with now 20-year-old crooner eventually turning to music and finding a career. According to the "Worth It" artist, the same judge who threatened him now knows of his musical success.

"She definitely know me right now," he added. "I saw her in Jacksonville. She said, 'You’re doing very good.' Her daughter knows my song...Yeah, everything. She know me now. She very proud of me. The judge had told me, 'If you come back one more time, I’m going to give you 20 years, 15 years.' I said 'Oh, no, I’m not coming back.'"

YK released his debut album The Golden Child on Oct. 11.

See Photos of Every XXL Freshman Ever Inducted Into the Freshman Class Over the Years

More From XXL