10:45 AM PT -- 8/3 -- The judge just granted a temporary restraining order, Ramos cannot contact Edie and must stay at least 100 yards away from her and her home. Not only that, it's been ordered Ramos must move out and not return. There's a hearing scheduled for next month.
Actress Edie McClurg has been victimized by a self-described longtime friend, who attempted to take her out of state and marry her, despite the fact that she suffers from dementia ... this according to new legal docs.
The docs, obtained by TMZ, state a man named Michael L. Ramos has been living at Edie's L.A. home as the 76-year-old actress battles dementia. According to the docs, Ramos, who is unemployed, has 'finagled' his way into Edie's life and attempted to move her out of California in order to marry her, despite knowing she lacked mental capacity.
Edie, who is under a conservatorship, got protection from a judge -- according to the new docs -- who ordered Ramos to stand down on his alleged marriage plan.
The docs go on to say, Ramos allegedly sexually assaulted Edie's caregiver, and a police report has already been filed with the LAPD.
The docs note Edie and Ramos have never been romantically involved, but the caregiver is fearful he may have been sexually assaulting Edie and -- given her condition -- she may not even realize what was happening.
The judge in the conservatorship case had allowed Ramos to live in Edie's home to provide her with companionship, but the lawyer for the conservatorship is now asking for an order to remove him.
TMZ broke the story ... Edie's family went to court back in 2019 to ask for the conservatorship, claiming she'd been living with a male companion who was verbally abusive and tried to influence the handling of her estate by getting her to sign documents.
Edie has been a staple in Hollywood, appearing in show like "Planes, Trains and Automobiles," and has done voiceover work in movies like "The Little Mermaid," "A Bug's Life," "Cars" and "The Rugrats Movie."