されると

if/when [something] is done to [someone or something]

→ 為る
phrase Rare #28,616
if/when [something] is done to [someone or something] A passive form of する followed by と, which introduces a result or consequence. The exact English phrasing depends on the verb and context.
JA: そんなことをされると困ります。
EN: If you do that to me, it'll be a problem.

あまりに訂正されると、話すのをやめてしまうのである。

If I’m corrected too much, I end up stopping speaking.

檻で飼育されると繁殖しない動物もいる。

Some animals won't breed when kept in cages.

そんなに感謝されると逆にこっちが恐縮しちゃうよ。

When you thank me that much, I actually feel embarrassed.

彼女は男性に忠告されるとこの上なくうれしく思う。

She is absolutely delighted whenever a man gives her advice.

科学は不注意に応用されると危険なことがある。

Science can be dangerous when applied carelessly.

だが悪いやつに利用されるといけないからーこれを作ったんだ

But I made this because I didn’t want bad people to misuse it.

— ストーカー (1979)