The problem you've raised is one that actually is addressed by the way that bills become law in the US (whether it works or not is a whole different question...).
Congressional bills go through a committee process where in theory people who've dealt with similar laws before learn about the particular subject matter, hear from experts and then decide on whether the bill should proceed: http://www.whitehouse.gov/our-government/legislative-branch#....