Demi Lovato is taking some heat over an answer she gave to a fan's question on Twitter about pranking her bodyguard Max.

On Sunday morning (June 3), Lovato took to Twitter to answer random questions from fans, ranging from whether she likes pasta to what her favorite wild animal is. Things took a controversial turn when the 25-year-old singer responded to the "funkiest prank" she has ever pulled on someone.

"I hired a lady of the night in Vegas and send her to Max's hotel room to surprise him. She walked into his room without permission and grabbed him in his 'area' and he freaked the fuck out hahahaha," Lovato wrote in a now-deleted tweet.

Yes!!! I know what I’m getting too -- https://t.co/R8zAAzBCMv — Demi Lovato (@ddlovato) June 3, 2018

Lovato's response drew criticism from many social media onlookers who accused the singer of sexual harassment and assault. "So she hired someone to walk into someone's room and sexually assault him. Okay girl," one Twitter user wrote.

Another person tweeted she was "beyond disgusted" by the joke. "I'm... not okay with this. Like, this is legitimately a shitty thing to do. That is sexual harassment on Demi's part, and sexual assault on the the other woman's part."

After seeing the blowback online, Lovato deleted the tweet and dismissed the matter, writing, "I swear I could tweet something about craving jelly beans and it would offend someone." She added that those who were offended should listen to her song "Warrior," and noted that she doesn't need to be educated about sexual abuse.

"For all of those coming at me rn, listen to the lyrics of Warrior and maybe you’ll have more compassion for someone who made a simple mistake. Of all people I know about sexual abuse. You don’t have to educate me," the singer wrote.

Lovato finally ended up apologizing to anyone who was offended by the prank. See the tweets below.

So she hired someone to walk into someone's room and sexually assault him. Okay girl. https://t.co/cwqwMjXAQa — Joshua Wickham-Young (@jwickhyoung) June 3, 2018

I'm... not okay with this. Like, this is legitimately a shitty thing to do. That is sexual harassment on Demi's part, and sexual assault on the the other woman's part. I am beyond disgusted by this. https://t.co/6dhBpk09Ac — Elise (@liz0stone) June 3, 2018

Let me say it louder: ASSAULT IS ASSAULT!!!!! Statistics show you’re most likely to be assaulted by someone you know. I cant even imagine hiring someone to do the worst thing you can do to another human being and claim it’s a prank? MEN CAN BE ASSAULTED TOO!! This isn’t (+) https://t.co/4I1y2NX6Lf — ronni // 55 (@iwishtaywould) June 3, 2018

What I learnt today:

According to Demi Lovato a sexual assault against a man is funny. CAN WE ALL UNDERSTAND IN 2018 THAT A SEXUAL ASSAULT AGAINST A MAN IS NOT A NORMAL THING AND WE SHOULDN’T LAUGHT ABOUT IT??

NEWS: A MAN HAS FEELINGS TOO, A MAN CAN BE SEXUAL ASSAULTED TOO. — Ila ?? -- (@flavlesswift) June 3, 2018

I swear I could tweet something about craving jelly beans and it would offend someone. — Demi Lovato (@ddlovato) June 3, 2018

For all of those coming at me rn, listen to the lyrics of Warrior and maybe you’ll have more compassion for someone who made a simple mistake. Of all people I know about sexual abuse. You don’t have to educate me. — Demi Lovato (@ddlovato) June 3, 2018