Khalid Anwar, 40, is alleged to have had sex with the woman without her consent, twice, in 2011 at a property in Tillicoutry, Clackmannanshire.
The woman has claimed that one of the alleged rapes took place after having consensual sex four times in one day, but claimed she did not agree to the fifth.
She also claimed that he bombarded her with texts and emails and turned up to her home uninvited, stood in her garden for hours and blocked her into her driveway.
The 44-year-old was giving evidence at Anwar's trial who faces a string of charges including raping his alleged victim twice between April and October 2011.
Anwar, from Edinburgh, denies the charges and has lodged a special defence of consent.
The jury were told that after the alleged rapes took place Anwar intimidated the woman.
She said: "There were instances where he would turn up at the house uninvited and stuff and I didn't know how I was going to get rid of him.
"Some of the stuff was quite intimidating.
"He would stand outside my back garden for hours and he would park his car in my drive so I was trapped in."
The trial before judge Lady Scott continues.