to resist

verb
  1. To exert force in opposition to something; to strive against or withstand. verb
    She tried to resist the temptation to eat the chocolate cake.
    The soldiers were trained to resist enemy attacks.
  2. To refrain from giving in to or yielding to something. verb
    He couldn't resist buying the new video game.
    Despite the pressure, she managed to resist signing the contract.
  3. To prevent oneself from being affected by something, especially an illness or a harmful influence. verb
    His immune system was strong enough to resist the virus.
    The new fabric is designed to resist stains.