The incident happened in July 2007, two months before the Crown says Xue strangled his wife An An Liu in Auckland.
Xue, 55, is on trial at the High Court in Auckland charged with murdering Ms Liu.
Today, evidence from the police officers was read in court outlining incidents in which driving offences by Xue were detected over a 24 hour period.
Xue was stopped for speeding while heading south at Te Kauwhata, Waikato, caught on a speed camera heading north at Levin and stopped for erratic driving while heading north at Karapiro, Waikato.
The Crown says that between the police detection of him at Te Kauwhata and Levin, Xue broke into a house in which Ms Liu was staying.
The man whose house Ms Liu was staying at, Weichong Song, told the court of seeing a man with a torch looking through his room about 2.30am.
Mr Song said she told him she moved from Auckland to escape Xue, who was violent towards her and unfeeling towards their daughter, Qian Xun Xue, also known by her English name Claire.
Mr Song said about two weeks later he woke after his dog started barking and saw a middle-aged, fat man shining a torch on his bed.
"I've got a gun in my bedroom and I got the gun from the gun safe and ran out to try to catch them," Mr Song said.
"When I gone out, I can't see anyone." Mr Song said he quickly tried to contact Ms Liu, whose door was locked, because she'd said her husband had told her he would find her and kill her if she ran away from him.
A few weeks later, Ms Liu told Mr Song she was leaving for Auckland because she felt it would be safer there.
On August 18 she texted Mr Song to say she was leaving. Mr Song contacted her once, when she said she wasn't going by plane, before the phone cut out. He didn't reach her again until 10pm, by which time she said she was in Taupo.
Under cross-examination, Mr Song denied he ever had a sexual relationship with Ms Liu.
Xue's lawyer Chris Comeskey read Mr Song a computer message Ms Liu sent to a friend in China where she said another man had made her "ferocious like a wolf" and that sex with a lover would be more exciting than sex with a husband.
Mr Song said references to "brother Song" could be referring to him, but he said "I never, ever sleep with this girl".
Justice Hugh Williams would not let Mr Comeskey ask if Ms Liu's message was saying there was a sexual relationship between them as the witness could not interpret a message between two other people.
Prosecutor Aaron Perkins also objected, saying that the message talked about desire and not actual sexual connection.
Mr Song later said he had told police Ms Liu was a nice woman who he could be interested in if he was not married, but he had no wish to jeopardise his marriage.
"Of course I want to keep my family together. I have a lovely wife, she give me lovely kids, how would I want to do something stupid like that."
The trial will start its second week on Monday afternoon with witnesses from China.