Section 25200 does not apply if any of the following are true:
(a)
The child obtains the firearm as a result of an illegal entry into any premises by any person.
(b)
The firearm is kept in a locked container or in a location that a reasonable person would believe to be secure.
(c)
The firearm is locked with a locking device, as defined in Section 16860, which has rendered the firearm inoperable.
(d)
The firearm is carried on the person within close enough range that the individual can readily retrieve and use the firearm as if
carried on the person.
(e)
The person is a peace officer or a member of the Armed Forces or National Guard and the child obtains the firearm during, or incidental to, the performance of the person’s duties.
(f)
The child obtains, or obtains and discharges, the firearm in a lawful act of self-defense or defense of another person.
(g)
The person who keeps a firearm has no reasonable expectation, based on objective facts and circumstances, that a child is likely to be present on the premises.