A pub-goer stopped by gardai as he pushed an electric bike up a hill reacted badly as he thought officers were being sarcastic when they asked him for his name, a court has heard.
Robert Fogarty (49) tried to bite a garda and had to be forcibly removed from the patrol car following his arrest.
Judge John Cheatle imposed a three-month sentence, which he suspended for 12 months after Fogarty donated €200 to the Garda Benevolent Fund.
The defendant, of Cardy Rock Court, Balbriggan, admitted public order charges including threatening and abusive behaviour and failing to provide a name and address to gardai.
Sergeant Terri Ferguson told Swords District Court that gardai were on patrol at Drogheda Street, Balbriggan, on January 14 when they came across Fogarty, who was unsteady on his feet.
He became verbally abusive when gardai asked for his name and address, and a number of gardai were needed to remove him from a patrol car.
Sgt Ferguson said Fogarty tried to remove his handcuffs and tried to bite a garda.
The court heard he had 47 previous convictions, including previous public order offences.
Defence solicitor Fiona D'Arcy said that Fogarty went to the garda station the next day and apologised for his behaviour.
Ms D'Arcy said the defendant had been out socialising and had had a few drinks.
He had an electric bike and was having difficulties pushing it up the hill when gardai spoke to him and asked for his name.
Fogarty thought gardai were being sarcastic as he is from Balbriggan, and it "all kicked off" from there, Ms D'Arcy said.
She added that Fogarty was "so disappointed" and had been "punishing himself for his behaviour" as he had not been in trouble for some time.