I wouldn't say for getting in the way, more like for acting like a typical shithead instead of not bothering someone who not only may not appreciate harrasement but also may not appreciate being attacked just for not giving their candy to some bully.
Only if an abyusive anon showed up later, Ant Girl just wanted to eat her candy and be left alone, only a minority attacks yukkuris for no apparent reason.