It shall be unlawful in the County of San Bernardino and outside of incorporated municipalities, for any person or persons to occupy or live in any house, cabin or other building designed and intended to be used as a dwelling house, without the knowledge, consent and permission of the owner of such building or without the knowledge, consent and permission of the person or persons having the control, custody and right of possession of such building.