Private roads crossing railroads shall be protected by the railroads as the law requires them to protect public highways.