A man allegedly shot and killed a Melbourne woman after threatening "war" because she didn't want to see him anymore.
Qasim House is standing trial for the manslaughter of 40-year-old Yen Ngo at Sunshine North in November 2017.
Three days before she died, Ms Ngo said she'd made a "big mistake" falling in love with House, Victoria's Supreme Court was on Wednesday told.
Ms Ngo was married to another man at the time, but he was in jail.
"From the bottom of my heart, I really love you but I don't think we're going to work," the jury was told Ms Ngo texted House.
House allegedly said he wanted "war", and labelled Ms Ngo a "using, evil, racist liar" as well as a "backstabbing traitor".
"Are you really ready for me to be nasty?" the 32-year-old was accused of saying.
House also said he would always love Ngo and couldn't change how he felt, the court was told.
"Make sure you tell all your boyfriends," he's said to have written in one text.
House isn't alleged to have deliberately shot Ms Ngo, who was dealing drugs at the time.
Prosecutor Patrick Bourke QC said the woman died from a gunshot to the chest as House threatened and intimidated her in her bedroom.
Mr Bourke said House drove Ms Ngo to hospital, told someone she had shot herself and left when police asked questions.
The accused killer was arrested after getting into two car crashes and being pepper-sprayed.
"She struggled with me ... she picked up the gun," House told police, adding Ms Ngo had said "kill me, kill me".
Acting for House, barrister Richard Edney said his client had not threatened or intimidated the woman.
House had written loving and affectionate letters to Ms Ngo talking about the pair separating, the barrister added.
"This was simply a tragic accident", Mr Edney said.
The trial is due to continue on Thursday.