I've heard a lot of these ban stories over many years and I think there's always going to be a visible minority of people with bad luck that offer speculation as to what really gets you banned.
From my own experience (botting since ~2006), Jagex is very stupid and/or lazy and they always will be (they have to be). Botting is so easy (because the tools and means to do it are easy to make and get) that the majority of their playerbase either does it or profits from it (RWT, muling, etc)... so they're never going to ramp up the strength all the way. They can't. They're going to be lazy, and they're going to ban you for obvious things, like bugging out and clicking a bank stall for two hours (I lost a noob account to this a week ago).
When you start behaving differently from other account running the same script, you are comparatively much safer. There will ALWAYS be a random chance of a ban, but it goes drastically down when you have your own private/different behavior. I don't think wall clicking is as bad as you might think, because Runelite users entity highlight all the time now with no bans. As for minimap clicking, I think that could be suspicious, but I doubt Jagex even sees it. Run some tests and find out, maybe?