のは悪いことだ

… is a bad thing

→ の
phrase Rare #30,443
… is a bad thing Follows an action or verb phrase to say that doing it is bad.
JA: 人の話を聞かないのは悪いことだ。
EN: Not listening to people is a bad thing.

試験でカンニングするのは悪いことだとみんなが考えている。

Everyone thinks that cheating on an exam is wrong.

ムニ、盗むのは悪いことだよ

Muni, stealing is wrong.

— バジュランギおじさんと、小さな迷子 (2015)