The doing of what is permitted by law negates liability, and no person who lawfully exercises his rights shall be liable for any harm arising thereout.