Caught doing the wrong thing is another name for a "legal basis". Don't do the wrong thing don't get sued.