But even for stealing, which is a logical prohibition, we find in the Book of Jonah that G-d sent Jonah to the Gentile city of Nineveh to warn them to return the stolen property they had in their possession, before they were to be destroyed by the Hand of Heaven for this sin (Jonah 3,8). From this we can conclude that for an entire community, a court should not rush to judge them, but rather they should first be warned and given the opportunity to correct their ways. Likewise, we see that G-d's judgment against the Generation of the Flood was sealed because of robbery, because the prohibition of theft is a logical precept, and they could not be excused by claiming they had not learned about it (see topic 4:2 for details; also Rashi and Ramban on Genesis 6:13, and Ramban on Genesis 6:2). Nevertheless, before the Flood, Noah was occupied in building the ark for 120 years, and during this time he repeatedly warned the people to abandon their sins (see Rashi on Genesis 6:14). Even though those events in the days of Noah and Jonah involved Heavenly judgments, we can still learn from them about the appropriate conduct for a court to follow in regard to passing judgment (the Divine Code by Rabbi Moshe Weiner, Ask Noah International, 2018, p 50).