Travelling in Indian trains in general compartment is not very safe. In reservation, it gets a little better but is still a problem if the train is one that gets crowded . During the night it gets especially concerning. It's always better to travel with someone else just to be safe