Everyone makes mistakes. There are times when you will do the opposite of what you are supposed to do.
There are 3 possible scenarios when you make a mistake:
1. Not realize you made a mistake and ignore it.
2. Be hard headed or stubborn and not admit you were wrong.
3. Take accountability and course correct as quickly as possible.
The first two option you are likely to make the mistake worse and dig your whole deeper. It is best to get back on the right track as quickly as possible. The longer you stay off track the harder it will be to get back on.
What ever you do do not be a victim. Do not play helpless. Take ownership and responsibility. This is the only way to gain your power and control over the situation.