For the mind that is set on the flesh is hostile to God, for it does not submit to God's law; indeed, it cannot.
Romans 8:7 ESV

Not submitting to God's Law is equated with hostility to God, but this is a consequence of the law of the spirit of sin that inhabits our mortal bodies. It is useless to teach the principles of Torah to an unrepentant sinner because he is unable to comprehend it. He sees no value in it.