A man who took the law into his own hands and fired blanks from an air pistol at a group of teens who were throwing stones at his home was the victim of persistent public order incidents, a court has heard.
Kaspers Serebryakous (35) claimed he fired the blank shots at the teens to frighten them away.
He admitted he regretted the entire incident and had overreacted, Swords District Court heard.
The father-of-two, who told the court there would be no repeat of his actions, may avoid a conviction if he comes up with €1,000 as a charitable donation.
The defendant, of Castleview Walk, Swords, Co Dublin, pleaded guilty to being in unlawful possession of a 9mm calibre blank-firing pistol, a realistic imitation firearm and four 9mm calibre blank cartridges at Castleview Drive on November 12, 2017.
He has two previous road traffic convictions.
The court heard that gardai received a call from three youths who alleged they were shot at at around 7.30pm.
A report was also received of a public order incident where a gang of youths were throwing stones at houses in the estate.
Serebryakous's house was searched under warrant and he handed over the two blank firearms and cartridges to gardai.
He told officers that he used the guns to frighten the youths because of the stone throwing.
Defence solicitor John Hennessy said his client was the "victim of persistent public order events" and that a group of teens had been throwing stones at his house for a number of weeks.
The prosecuting garda agreed with Mr Hennessy and said ongoing complaints had been made by local residents about gangs of youths targeting houses.
Mr Hennessy said Serebryakous was "ignorant in regards to the law" for having the weapons without a licence.
"He had a licence for guns in his home country of Latvia but not here," said the solicitor, adding that the guns he had could not fire real bullets.
"There is nothing sinister about him. He's a family man and doesn't drink.
"He does regret the entire thing and admits he overreacted.
But in the context of all of this he has, at all times, expressed shame and regret," Mr Hennessy said, adding that the defendant assured the court there would be no repeat of it.
Judge Dermot Dempsey adjourned the case for the defendant to come up with €1,000 as a charitable donation if he wants to avoid a conviction.