A boy was hitting his sister. His dad said “son, because you are a member of this family, I cannot allow this behavior to continue. I love you too much to allow you to keep hitting your sister.” How different is that from “son, if you want to remain a member of this family you had better quit hitting your sister.”
The second response is unfortunately the way too many people view God. If we behave a certain way then God will love us and allow us to be in His family. However, the first response is actually what we find in the Bible. We are part of God’s family by His grace. He loves us so therefore He expects us to behave a certain way.
Our behavior is not the basis of our being part of God’s family, it is the result of us being part of His family.