I think as long as the trespasser don't press charges against you when your dog bites him or her. As far as I know, even criminals can still press charges if they are aggravated too. But to be safe, the sign outside your house to beware of dogs is also helpful for your case.