The idiom "a moth flying into the flame" is a metaphor for seeking one's own destruction.
Tips
culture
The related chengyu 飞蛾扑火 / 灯蛾扑火 (a moth flying into the flame) is proverbial in Chinese for reckless self-destruction — moths' attraction to light is the classic image of suicidal folly.