If an under-crossing, over-crossing, or grade crossing is constructed, maintained, or operated, or is about to be constructed, operated, or maintained, in violation of the provisions of this chapter, or in violation of any order of the commission, such construction, operation, or maintenance may be enjoined, or may be abated, as provided by law for the abatement of nuisances. Suits to enjoin or abate may be brought by the attorney general, or by the prosecuting attorney of the county in which the unauthorized crossing is located.