Mila Kunis said a man with "crazy eyes" is scaring her to death.
Dunn, who appeared in court in a yellow prison jumpsuit, is charged with two counts of felony stalking.
Kunis said the man was relentless, and even found out where she works out. She stated that she has seen him on numerous occasions sitting by her car, waiting for her. Kunis also stated that he went to her agent's office and demanded a meeting, and her phone number.
Cops caught Dunn in Kunis's West Hollywood condo last February. They said he was actually living there for two weeks while the actress was out of town.
Security expert, Lou Palumbo, said Kunis might have reason to be frightened.
"I would say he's deranged, I would say he's obsessed, I would say he's probably emotionally defective, and capable of causing harm to her," said Palumbo.
Dunn's attorney said he's no threat to Kunis, but the judge didn't buy it.
The judge ordered Dunn to stand trial. A deputy handcuffed Dunn and took him back to the jail, safely away from Kunis.