質問ありがとうございます。
こう言えますよ、
❶ I drank beer during my diet. I shouldn’t have.
(ダイエット中にビール飲んじゃった。しなければよかった)。
❷ I’m on a diet and I drank beer. Why did I?
(ダイエット中なのにビール飲んじゃった。なんてことを?)
と言えますよ、参考になれば嬉しいです!
I've been really strict about my diet since I started it last month, but I broke down and had a beer today.
この場合、次のような言い方ができますよ。
ーI've been really strict about my diet since I started it last month, but I broke down and had a beer today.
「先月ダイエットを始めてから、ちゃんと徹底してたのに、今日挫折してビール飲んじゃった」
I broke down and had a beer today. と言うことで、飲んじゃダメなのに飲んじゃった、というニュアンスを出せますよ。
ご参考まで!