The demon slayers maintain their humanity by holding onto their morals, values, and compassion even in the face of demonic threats. They are driven by a sense of justice and a desire to protect the innocent, which helps them stay true to themselves despite the darkness they face. Additionally, the bond they share with their comrades and the support they receive from their loved ones play a crucial role in preserving their humanity amidst the chaos of battling demons.