Any sin automatically makes its perpetrator an unbeliever.

Ahl al-Qibla, Sin and Faith, the Essence of Faith and Degrees of Believers