Ignorance of the law is no excuse here, either.
It's really common sense, though. It's just like when you're a kid....you generally know that what you're about to do might get you in trouble, but decide to go ahead and hope you don't get caught. If you find yourself thinking something might get you in trouble, just don't do it.