Hey there!
The sun's UV radiation damages the light receptors of the retina, so we should not look at the sun directly, but during sunrise and sunset the sunlight is coming at us horizontally rather than vertically. It has traveled many miles through the atmosphere to reach our eyes.
Hope this work for you.