Judge the substance, not its surroundings
Coffee's legal status depends on what the drink itself does, not on the bad conduct that sometimes accompanies it. Gambling, music, or improper mixing in coffeehouses are separate wrongs to punish individually. They do not make the beverage forbidden.