A man has been spared prison after he admitted aggressively threatening and assaulting an ambulance who had been called to assist him while he was in drunken state.