Where a railroad is constructed so as to cross a highway, and it be necessary to raise or lower the highway, it shall be the duty of the railroad company to make proper and easy grades in the highway, so that the railroad may be conveniently crossed, and to keep such crossings in good order. It shall be the duty of the railroad company to erect and keep in order all bridges on any highway, at such points as bridges may be necessary to cross the railroad. Any company which shall fail to comply with these provisions within sixty (60) days from the filing of written notice by the board of supervisors of the county in which said crossing is located, served upon the agent of said railroad company located in said county by the sheriff, as other processes are served, shall forfeit the sum of the cost of construction of said bridge or crossing, to be recovered by action in the name of the county in which the bridge or crossing is situated, upon an itemized bill of cost of said work.