Singer Demi Lovato says she and her actor boyfriend, Wilmer Valderrama, have remained together five years despite temporary breakups during her highly public battles with cocaine addiction, an eating disorder and bipolar disorder.

"The only times we ever broke up were when I was relapsing, whether it was drugs or in a bad place and rebelling against everybody, not just him," the former Disney Channel star, who turns 23 later this month, tells Cosmopolitan magazine in its new issue. "People say that relapses happen before you use. Your mind starts setting up the relapse before you take that drink or that first hit. The times we'd broken up, I had already gone to that place of, 'Yeah, this is what's happening.' I didn't realize it at the time, but I just wanted to sabotage everything around me so that I could sabotage myself."

advertisement | advertise on newsday

Lovato credits the former "That '70s Show" star, 35, with sticking by her through difficult times. "We started dating when I turned 18," she told the magazine. "Right after that, I went to rehab. People told him, 'You should probably leave. She's on a spiral, and you're going to be sucked down with it.' But he was like, 'I'm not leaving. This is somebody I really care about.' We relate on a lot of levels. I've seen a lot . . . that people don't know about. He's seen a lot of stuff, too."

The "Cool for the Summer" singer also noted that Valderrama is friends with her former boyfriend, singer Joe Jonas. "It's weird," she said. "In the beginning, I was like, 'Why are you friends with Joe?' He was like, 'He's a cool guy.' Yeah, I know. I dated him."