An autistic woman was banned from having sexual intercourse on the ground that she lacks the mental capacity to consent to the act, the Daily Mail reported.
Justice Hedley said he passed the order to protect the best interests of the 29-year-old. He said she had to be protected from "potentially exploitative and damaging" relations in the future, as she had already been involved in risky behaviour with people.
The order prevents the woman from having sex and also means anyone trying to have sex with her can be charged with sexual assault or rape.
Justice Hedley said: "It is strange, but nevertheless true, that even the freedom to make unwise decisions is one that the court is required to guard and only to restrict if and when the best interests of (the woman) so require."
The case was heard at the controversial Court of Protection, which was set up in 2007 to decide on medical treatment for individuals judged by psychiatrists to lack mental capacity, the Mail said.
Photos: Salman Khan returns from Jodhpur to Mumbai
15 'peach' perfect photos of Priyanka Chopra at People's Choice Awards 2017
Photos: Tennis legend Andre Agassi meets Rahul Dravid in Mumbai
Photos: 10 times 'Sultan' Salman Khan wrestled with the law
62 going on 16: These photos of Rekha prove she is 'forever young'