I don't think he was ever technically fighting that law, it was the access to that public beach through his property that he blocked off. So basically - "Look, that beach is public, you just can't walk on my property to get to it. Oh, and my property is the only way to get to it. Sorry!"