See: https://www.oyez.org/cases/2017/16-402
It comes up fairly often here since the HN audience tends to be mostly programmers/computer people, but it's really important to remember that the law is not a series of rules a computer can directly evaluate to determine whether something is or is not legal; judges frequently use their judgement to balance the assumed intent of laws and the competing interests of various parties. I don't say this to you specifically but really just the HN audience as a whole :)