そんなことをしたら

if you do such a thing

→ そんな
phrase Rare #35,038
if you do such a thing Can also mean “if you did that,” depending on context.
JA: そんなことをしたら、みんなが困るよ。
EN: If you do that, everyone will be in trouble.

二度とそんなことをしたら承知しないぞ。

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.

そんなことをしたら罰せられるだろう。

If you do that, you'll be punished.

しかしそんなことをしたら警察へ連絡したと犯人に知らせてやるようなもんです

But if we do that, we might as well tell the culprit we’ve contacted the police.

— High and Low (1963)