Imagine you're in a totally dark room, full of toys scattered on the floor (Legos, cars). If you try to run through it, what happens? You'll step on something, hurt your foot, and fall.
God's Word (the Bible) is like a powerful flashlight. When you turn it on (by obeying), you see where to step and don't get hurt. And when mom or dad give you a talking-to or correct you, they're not being annoying. They're holding the flashlight and saying, "Careful! There's a hole over there!" Correction is how they keep you safe on the right path.