It is unlawful for any person to willfully break down or cause to be broken down any fence or gate or to leave open any gate in such fence. This section shall not apply to the owner or occupant unless such owner or occupant causes such fence or gate to be broken down or left open with malicious intent.