I personally think this statement is pretty misunderstood. I don't think they mean "ignorance of the law is not a valid excuse" (i.e. "you should have known") but rather "if you don't know the law we're still going to punish you" (i.e. "we don't care if you could have known or not").