The answer comes from where the rules say the vertical markings
are painted: on the side of guardrails on sharp curves, steep downhills and other dangerous stretches. They don't warn of something ahead; they mark the very stretch you are driving on and help you see from far away where the guardrail runs and where the road goes. So on such a stretch, you should slow down and stay in your lane