Concerned about losing emails on IMAP

I just configured my email for IMAP and did some tests. I like synchronization that sorts my email.

But there is one thing that concernes me.

What if someone hacks into my email account online, deletes everything from all folders (Inbox, Sent, Archived, etc.) and then purge Trash folder? This will permanently delete everything online and automatic synchronization will do the same offline. In the moment I lose everything. Also maybe due to some server error the same thing could happend.

Am I right?

I’m thinking that good old POP, with option to leave messeges on server, is better solution in this scenario.

Please advice me.