@@@@Highlights •Polymerized zwitterion shows better inhibition performance than monomer.•Both inhibitors are mixed-type ones, obeying the Langmuir adsorption isotherm.•MD studies show that parallel adsorption of PVIPS is energetically favorable.•Steric effect and high hydrophobicity of PVIPS help to repel H2O and aggressive ions.