The Commissioner of Transportation may make orders for the regulation of the speed at which locomotives and cars shall cross highways and generally may make all orders which he deems necessary to prevent inconvenience to the public relating to the crossing or obstruction of highways by locomotives and cars. Any company which violates any such order shall forfeit to the state fifty dollars for each day of such violation.