Everyone always tells you that ignorance of the law is no excuse. But sometimes it is. At least when the statute at issue incorporates concepts of legal duties and when your ignorance of those legalities doesn't constitute criminal negligence.
Here's an example. Proving that for every maxim, however seemingly universal, there's typically at least one exception.