if you do such a thing
そんなことをしたら罰せられるだろう。
If you do that, you'll be punished.
二度とそんなことをしたら承知しないぞ。
If you ever do that again, you’ll be sorry.
そんなことをしたら逆効果になる。
Doing that would have the opposite effect.
万一そんなことをしたらあなたはひどい非難を受けるだろう。
If you were to do something like that, you would face severe criticism.