Ask yourself this: "When I play a video game, do I usually play for 57 minutes, stop for 12 minutes, then repeat over and over?" The answer is probably no. Botting is inherently unsafe, but to mitigate as much risk as possible make your account act as realistically as possible.
For example, bot for a couple hours, then go manually do a quest, or PK, or duel for a bit. Rest for a few hours, then repeat. Make sure there is a long consistent 8+ hour period with no account activity (this is you sleeping).
Remember, if you care about your account do not bot. If you're trying to get a lot of gp via bot farm then you shouldn't care about your accounts and this really does not apply.