A railroad, while raising or lowering a public highway, or while making any other alterations which obstruct a public highway, shall provide and keep suitable temporary ways in good order to enable traffic to avoid or pass the obstruction.
SDCL 49-16A-85