While the law primarily focuses on punishment, societal awareness and mental health support are crucial preventive measures.