The red lines show the direction you take ascending up the scale. There are notes beyond A on the third string for example but we won’t be dealing with those as they are beyond first position.