It's not inevitable, just likely. Most of these are at slow speed or when walking the bike around. It sounds kinda silly, but that's when the bike is most unstable, and generally when new riders tend to let their guard down. It helps if you really pay attention to what you are doing before you do it and
take your time when moving at slow speed.