Job continues describing situations in which he would deserve God's punishment, but he knows they are not true. (See: [[rc://en/ta/man/translate/figs-hypo]])
The word "that" refers to Job sleeping with another woman.
# it would be a crime to be punished by judges
This can be stated in active form. AT: "it would be a crime for which judges would be right to punish me" (See: [[rc://en/ta/man/translate/figs-activepassive]])