The US has multiple forms of law, Legislative Law, as ratified by the Legislative Body. Then Case Law which is law introduced by Judicial courts which may or may not invalidate, expand, or change the legislative law. The US also has courts under specific bodies such as the EPA.
Lawyers exist to be able to tell you “the law says x, however the most common case law actually says Y.” In terms of investor, patent, and IP law this is SIGNIFICANT. You could be violating the investment laws enacted by the legislature; but it could be entirely legal because a court in your district invalidated that law. However, you fly to New York, a different district, and it’s illegal again.
Determining what is legal and what is illegal can be exceptionally difficult. Because the layman doesn’t have access to the thousand dollar monthly subscription of LexusNexus to do case law searches. They probably don’t even know that this exists.
Another example - California has a law on the books that states that you’re not allowed to own batons and nunchucks….. Except in Yuba County, where a Judge has thrown out the law via a court case, and the DA never appealed the ruling. But if you’re arrested by the CHP, instead of the Sheriff they can try you in State Court, and it applies again.