Can't say exactly as I consider two different situations viz., travelling alone and travelling in group
ЁЯФ╣Travelling in group: If travelling in group boarding/deboarding a train in midnight/early morning time is not a problem as minimum one person will be awake
ЁЯФ╣Travelling alone: I have deboarded early morning train (03:00 - 05:00 range) after sufficient sleep. But I didn't board a train while traveling alone after 23:00 till now