If I get caught having a pet, they'll force me to leave and take several months' worth of the security deposit as a penalty.
こんにちは!
ご質問ありがとうございます。
ご質問について、いくつか言い方が考えられますが、例えば、
If I get caught having a pet, they'll force me to leave and take several months' worth of the security deposit as a penalty.
とすると、『もし私がペットを飼っているのがバレたら、違約金として[敷金](https://eikaiwa.dmm.com/uknow/questions/2051/)数ヶ月分を取られて強制退去させられる。』と言えます。
役に立ちそうな単語とフレーズ
get caught ばれる、捕らえられる
参考になれば幸いです。
If they find out, I'll be fined several months' rent.
If I get caught, I’ll have to pay a penalty.
If they find out, I'll be fined several months' rent.
・get caught「バレる、見つかる」
・penalty / fine「違約金、罰金」
・find out「(事実が)発覚する」