I seen parents doing that with me as well (even if I’m not offering a hug in the first place) and when the parent scold I always go “ Aw you don’t have to give me a hug if you don’t feel like it! How about a high-five” kids love high fives and its significantly less invasive lol