Akrasia (/əˈkreɪziə/; Greek ἀκρασία, "lacking command"), occasionally transliterated as acrasia or Anglicised as acrasy or acracy, is described as a lack of self-control or the state of acting against one's better judgment. The problem goes back at least as far as Plato. In Plato's Protagoras Socrates asks precisely how it is possible that, if one judges action A to be the best course of action, one would do anything other than A?
https://en.wikipedia.org/wiki/Akrasia