A public entity is not liable for an injury caused by adopting or failing to adopt an enactment or by failing to enforce any law.

(Added by Stats. 1963, Ch. 1681.)