Stuart Dunn, 27, was charged with stalking and stalking in violation of a restraining order. Judge Shelly Torrealba said the alleged crime is considered a violent and serious crime.
He was originally arrested in January for breaking into Kunis' condo. No one was there at the time. Dunn was arrested again two weeks ago when he showed up at Kunis' gym three days in a row.
Torrealba ordered Dunn to stay away at least 500 yards from Kunis. He is not to have any contact with her, not stalk or harass her at her place of work or residence. Dunn was also ordered to surrender any firearms he may have.
He faces up to four years in prison if convicted. He is being held on $150,000 bail.
A preliminary hearing was scheduled for May 31.