Any way you want
But this is a note on the pleasure & gain to be had from sneaking a look at the end.
If the story is in any way one in which you are being held in suspense over the dénouement, the anxiety to get to the end can interfere with your enjoyment
You will fail to appreciate the clever way in which the author constructs the plot & slowly reveals the clues. You will not enjoy the character development & all the other aspects of the story
So look at the map, find out where you are going, then just sit back, relax & enjoy the journey