A Perth man who beat his girlfriend's former partner with a piece of wood says he did so because he feared he feared for his life.
Gatkath Kong is on trial in the District Court of WA and admits bashing Ali Warsame with a stick in the early hours of November 4, 2017, but claims self-defence.
Mr Warsame suffered broken arms and was also hit on the head, which required him to have metal plates inserted around his eyes.
Kong, who is charged with doing an act that resulted in life, health or safety being endangered, claims he and his partner were asleep in bed when Mr Warsame persistently banged on the door of their East Victoria Park apartment, calling out her name.
Kong says he opened the door, said the woman didn't live there before closing the door in Mr Warsame's face, then walked back to their bedroom with the intention of resuming sleep.
But Mr Warsame started banging on the kitchen window, so hard the couple feared it would break, and continued yelling out for the woman, Kong claims.
He says he went outside and directed the drunk man downstairs but became fearful when Mr Warsame reached into a bag he was carrying and said he had a knife.
"He told me 'I'm going to stab you'. I was really scared," the accused testified on Wednesday.
Kong said he picked up a stick that was lying on the grass, then hit Mr Warsame three times.
"He swing at me. While he swing at me, I kept hitting him with a piece of wood.
"I was protecting myself from getting hit with whatever he had in his hand."
Kong said he stopped when the woman emerged and told him to.
It is alleged Kong took some of Mr Warsame's clothing before he ran off.
But Kong claims the shoes and a pair of jeans he was wearing, held up by a belt, fell off.
Under cross examination, Kong said he probably took them off because he wanted to run.
"That's just nonsense, isn't it?" prosecutor Mark Nicol replied.
Mr Nicol noted Kong made no mention of a knife when he was interviewed by police.
The jury is expected to retire on Thursday.