Bacterial infections typically invade the living tissue of wounds, thereby aggravating the inflammatory response, delaying wound healing, or causing further complications. In this paper, the antibacterial hydrogel (PNVBA) with antifreezing and antidrying properties was prepared by a two-step method using N-isopropylacrylamide (NIPAM), 1-butyl-3-vinylimidazolium bromide (VBIMBr), and 3-acrylamidophenylboronic acid (AAPBA). PNVBA hydrogels exhibited a high adsorption capacity of 280 mg•g −1 for bovine serum albumin (BSA) and can adhere to the surface of different materials through ion-dipole or hydrogen-bonding interactions. Meanwhile, the PNVBA hydrogels exhibited high viscoelasticity and good adhesion after freezing at −20 °C or heating at 70 °C for 24 h with a sterilizing rate of up to 98% against multidrug-resistant (MDR) Escherichia coli and methicillin-resistant Staphylococcus aureus (MRSA). Moreover, a survival rate of up to 90% after incubation with L929 cells over 24 h was observed. Therefore, this inherent antibacterial hydrogel can be used as an excellent alternative material for wound dressings.