When the city council orders any sewer, sidewalk, street, alley, recreational path, way, or street curbing paved or otherwise improved, upon which any public property abuts, the city council shall assess the cost of such improvements against said public property in the same manner and to the same extent as it does where private property is assessed. And when any sewer, sidewalk, street, alley, recreational path, way, or street curbing is paved or otherwise improved upon which public property abuts and the public officer or agency controlling such public property fails or refuses to pay the assessed cost of such improvements the city council shall enforce payment of the same by levy and sale, mandamus or other appropriate legal proceedings; provided, such action for collection of the assessed cost of such improvements upon which public property abuts may be defended by the authorities in control of said public property by proving that the amount claimed to be due, or some part thereof, is not justly due or owing by said authorities; and, provided further, that when any action is begun and said authorities admit that part of the amount claimed is due, the amount so admitted to be due shall be paid as a condition precedent before any defense shall be heard by any court.