(a) It shall be unlawful for an owner of a dangerous animal to permit the animal to be off the owner's property unless: (1) The animal is restrained by a leash not to exceed six feet in length and is under the immediate physical control of a person capable of preventing the animal from engaging any other human or animal when necessary; (2) The animal is contained in a closed and locked cage or crate; or (3) The animal is working or training as a hunting, stock, or predator control animal. (b) It shall be unlawful for an owner of a vicious animal to permit the animal to be: (1) Outside an enclosure designed to securely confine the vicious animal while on the owner's property or outside a securely locked and enclosed pen, fence, or structure suitable to prevent the vicious animal from leaving such property unless: a. The animal is muzzled and restrained by a leash not to exceed six feet in length and is under the immediate physical control of a person capable of preventing the animal from engaging any other human or animal when necessary; or b. The animal is contained in a closed and locked cage or crate; (2) Attended by minors. (c) Any irregularity in classification proceedings shall not be a defense to any prosecution under this article so long as the owner of the dog received actual notice of the classification and did not pursue a civil remedy for the correction of the irregularity. (d) Violations of this section shall be subject to the jurisdiction of the magistrate court of the county.