My mindset - one that many other people share - is that you should worry less about the law and more about whether or not what you're doing is moral and good. I'll break the law if the law is bad, without feeling very guilty.
If a weapons dealer sells a terrorist a bomb knowing it will hurt innocent people, the dealer might not directly detonate the bomb themselves, but I think we would still hold the dealer partly responsible for supplying the tool.
Likewise, if a buyer buys an illegal good and it is known that, somewhere down the line, people were killed in the process of getting that good to the buyer, the buyer shares responsibility for supplying the motive, money.