What are the main challenges in ensuring safety at railway level crossings in India?

After reading about a recent accident in Cuddalore and the review of safety measures, I am curious about the key issues that make level crossings prone to accidents and what solutions could be implemented.