Nothing in this chapter shall be construed in any way to permit or authorize any conduct made unlawful by Chapter 9 (commencing with Section 319) of, or Chapter 10 (commencing with Section 330) of, Title 9 of Part 1 of the Penal Code, or any local ordinance.