Does Deuteronomy 22:28-29 Discredit Gods Goodness?

Deuteronomy 22:28-29 often perplexes modern Christians, especially when unbelievers use it to attack the Scriptures and the true God. How does the Christian make sense of this Mosaic Law? What does it teach us about God’s will? Does it really discredit God’s goodness?