When the Commissioner of Transportation deems it necessary for the safety of persons traveling upon any railroad in this state that guard rails or any other appliances to secure safety should be placed upon any bridge used by the company operating such railroad, the commissioner may order such company to place such guards upon such bridge as he deems necessary. Any such company which fails to comply with such order shall forfeit to the state twenty-five dollars for each day of such failure.