And this is where problems come into play. The Torah stands on its own. That IS the context as determined by how it would be understood by the ORIGINAL reader. When other passages don't align with original context, we have inconsistency, if now downright contradiction.
FYI, I'm Ok with such inconsistencies and recognize them as such. I don't have to do acrobatics to force misc. passages together to make sure my ideology is confirmed. I'm even good with disagreeing with the Bible which is why I won't support slavery or genocide, even though both are contextually "biblical".