No good tree bears bad fruit, nor does a bad tree bear good fruit.
Jesus talked about the difference between good and bad people with directness and clarity we don’t often hear repeated. He certainly never claimed we could be perfect. He died, willingly, knowing that was the depth of our need for God’s help. But at the same time, Jesus was very clear about standards of behaviour that we could follow, despite our imperfect ethics. He continually reinforced how critical it was for us to follow those standards, for the sake of others.