Whoever, being charged with the performance of any duty under the laws relating to the preservation of the public health, willfully neglects or refuses to perform the same, shall, except in cases where a specific punishment is prescribed, be fined not more than $200 or imprisoned not more than 1 year, or both.