Reactance is a psychological phenomenon where people become resistant to persuasion when they feel their freedom is threatened. People have a need for autonomy and to feel in control of their actions. Warnings or instructions to not do something can actually make people more likely to do it, generating reactance.
Any effort to encourage people to change their behavior can be seen as impinging on their freedom and autonomy, leading to the opposite response.