Hacking is very hard to prevent once they target and focus on yours. The best thing you can do is to split your bitcoin into different addresses you have.
yes it was one of the best ways, do not save all bitcoin on one wallet and also do not forget to always use double security.