Whenever it becomes necessary to safeguard the public from the dangers of rabies, the mayor, if he deems it necessary, may issue a proclamation ordering every person owning or keeping a dog to confine it securely on his premises unless such dog shall have a muzzle of sufficient strength to prevent its biting any person. Any unmuzzled dog shall not be taken off the owner's premises even though on leash, cord, chain or other restraining devices in spite of which it might bite a person.