I don’t have a better solution, but “you’re smart enough to know you shouldn’t do that, so why did you?” feels a lot like the “you’re smart but you don’t apply yourself” I got a lot as a kid that always made me feel inadequate.
I fucked up sometimes, I didn’t do it on purpose and asking me why I did it as if I consciously made a decision to be wrong on purpose and wanting an explanation is basically asking me to either lie or say “i don’t know” which was never the “right answer.”