So far what I have done to prevent my email hacker is to change the password every month. And until now no hackers have entered.I think this is one of the effective methods to prevent hacking.
Change your password regularly
Do not use names of family members, friends, pets or date of birth as password
Don't login in on untrusted devices
Never give your password out
Don't click on suspicious links/emails