A moth flies into a flame, which originally means self-destruction. When used in idioms, it can have many interpretations as follows:
A moth flies into a flame - causing suicide.
A moth flies into a flame - it is self-destruction.
Moths fly into the flame - pursue the light and have the courage to devote yourself to it.
A moth flies into a flame - seeking death.