You should sprint imidietly when it starts to get to the end, and stop by the tracks so the trains don’t hit you.