against your better judgment
US /əˈɡɛnst yʊər ˈbɛtər ˈdʒʌdʒmənt/
UK /əˈɡɛnst yʊər ˈbɛtər ˈdʒʌdʒmənt/

1.
despite knowing or feeling that something is probably wrong or unwise
:
•
I went against my better judgment and lent him the money.
•
She knew it was a bad idea, but she did it against her better judgment.