Rihanna is scared for her safety after a crazed male fan was caught walking on the singer’s roof.

Robert Melanson, 26, was found skulking on Rihanna’s roof with detailed maps of the property on June 17. Upon his arrest, he was originally booked on suspicion of trespassing. Melanson was held in psychiatric custody and was released a mere two days later.

A judge has ordered him to stay 100 yards away from the “Diamonds” performer and must stay clear of her house and place of business.

However, according to legal documents obtained by TMZ, because Melanson is allegedly unstable and has a criminal history, Rihanna fears that he might not be able to grasp the rules and dismiss the restraining order completely.