Most hacked accounts fall not to sophisticated attacks, but to the same password being reused across many services. One site leaks, and every other account is open. The first habit to fix: one service, one unique password.
Habit two is enabling two-step verification on every important account. With that layer in place, a thief who steals your password is still stopped because they do not hold your phone. Prefer an authenticator app over SMS where available.
Then: keep devices and apps updated, treat unexpected links and attachments with suspicion, use a password manager so you are never tempted by short passwords, back up important data, and review the permissions of apps on your phone regularly.
No system is 100% secure, but these seven habits make your accounts far more expensive to attack. In cybersecurity, being a hard target is usually enough — attackers move on to easier ones.