I can say with rather greater assurance, a Christian did not write that either. Since we're in the authorship attribution business today :D
Well, that, too. Wrong book. 😂
Also unfair criticism, as the emphasis was clearly on exonerating the woman for false accusations, rather than letting her husband get away with a lie about her, as formerly, under the pagans. A lot of OT law was an improvement upon what had existed before, even if it seems extreme to us.