(a) Every owner of a guard or attack dog shall keep such dog confined in a building, compartment or other secure enclosure. Any such enclosure shall be completely surrounded by a fence at least six feet in height and shall be topped with an anticlimbing device constructed of animal metal braces with at least three strands of equally separated barbed wire stretch between them. A minimum 12 inches by 18 inches sign, visible from 30 feet, shall be posted to notify the public that a guard dog is on duty. (b) All anticlimbing devices shall extend inward at an angle of not less than 45 degrees nor more than 90 degrees when measured from the perpendicular. (c) The areas of confinement shall all have gates and entrances thereto securely closed and locked, and all fences properly maintained and escapeproof. (d) The provisions of this section shall not apply to dogs owned or controlled by government law enforcement agencies.