This has a quotation within a quotation. A direct quotation can be stated as an indirect quotation. Alternate translation: "Yahweh spoke to Moses and told him to tell the people of Israel this: 'When anyone sins" (See:[[rc://en/ta/man/translate/figs-quotesinquotes]] and [[rc://en/ta/man/translate/figs-quotations]])
This can be stated in active form. Alternate translation: "that Yahweh has commanded the people not to do" (See: [[rc://en/ta/man/translate/figs-activepassive]])
This can be translated in active form. Alternate translation: "if he does something that Yahweh does not allow" (See: [[rc://en/ta/man/translate/figs-activepassive]])