A man has been given a suspended sentence at Derry Magistrate's Court after he threatened his neighbours over a noise issue.