In the event an emergency is of such immediacy and danger that giving a 24 hours' notice of violation would threaten the public health, safety and welfare, the county is authorized to enter upon the subject private property, without giving prior notice, to take any and all measures necessary to abate the violation and correct the situation. It shall be unlawful for any person, owner, agent or person in possession of any premises to refuse to allow the government agency or designated contractor to enter upon the premises for the purposes set forth above. The county shall be authorized to recover costs of the abatement from the property owner or responsible parties.