Miley Cyrus, Jay Leno Miley Cyrus, Jay Leno

Money can't buy happiness, but according to Miley Cyrus it can keep Justin Bieber out of trouble.

"You've got a lot of money. Pay people to make sure you don't get in trouble, and party at your house. Buy a house, and add a club to it," Cyrus advised the singer, who was recently charged with a DUI and assault, on Thursday's episode of TheTonight Show.

Justin Bieber: A timeline of bad behavior

Host Jay Leno asked Cyrus if she had any youthful mistakes of her own she regretted. Cyrus coyly responded, "I'm doing a lot of sh--, but I'm not doing anything illegal — so that's all right. Everything I do is legal in California."