Formatting your Xbox 360 will NOT unban you from Xbox Live.
Prevention: Play fair, don’t modify hardware, secure your account (2FA).