In my experience it's done by the class of account. It seems like if it's seen as a possible 'main' i.e., quests done and combat + skills then it'll get a 2day ban, whereas if it's seen as a bot, solely for one thing, it'll get peek straight away...
that's just from my experience though.