If they thought they were selling illegal drugs but they were just selling sugar they would be convicted. (In England if you sell sugar as illegal drugs you will be convicted of a drugs offence even if you know you are selling pure sugar).
If I plan to kill my boss, saw him into pieces with a chainsaw, and put the pieces in triple-mylar garbage bags, when I go to the store to buy garbage bags I've crossed the legal threshold.
In many states, if the prosecutor can prove to the jury 1) I planned to kill my boss, saw him into pieces with a chainsaw, and put the pieces into garbage bags, and 2) bought garbage bags, I'm toast and will go away for several years. NB there is nothing wrong with just buying the garbage bags.
Incidentally, this is why you should always get a lawyer before talking to the cops.