When we think of God sometimes we can't help but think about earthly parents and how they respond to children and raise them. We may even think about the shortcomings of our own parents.
There are good examples and there are poor examples. But God is not the reflection of earthly parenting, but is the perfect Father who cares for His children perfectly.
He gives warnings to serve us as safeguards and sign posts of danger, but at the same time He assures us of His blessings when we love Him through our obedience to Him (John 14:15).
One thing we can be sure of, He never leaves nor forakes those who are His (Hebrews 13:5). He disciplines those He loves (Hebrews 12:6), But He will never turn His back and reject.
God is the perfect Father who will never abandon us. May His love draw us closer to Him and may we choose to live a life that reflects that love in obedience to His Word.