The Torah sets the punishments for individuals who curse their parents and those who engage in prohibited sexual relations.