A father of one swung out at a garda after officers were called to his home to check on the welfare of a young child, a court has heard.