'Too fast commuter train nearly left rails'