Similes can be a great literary device, unless you’re really bad at writing one, like this Yahoo! Style writer:
The expression “like moths to a flame” refers to the insect that is inexplicably drawn to light. No one knows why, but of all the theories about the reasons for this phenomenon, none include hunger. And there’s no evidence that moths salivate. This simile makes no sense; it’s as clear as mud.