to refuse to accept something and try to stop it from happening; to fight against something or someone
“It was hard to resist eating the cake.”