入魔 is deeply rooted in wuxia (martial arts) and xianxia (cultivation) fiction, where it refers specifically to a cultivator losing control of their power and entering a dangerous, demon-influenced state. The full idiom
走火入魔 is common;
入魔 alone is used more colloquially to describe any extreme obsession.