ISLAMIC LAW

If today’s muslim says that there is not Allah and/or says that Prophet Mohammad (SAAW) was not the last prophet and there are Prophets after him… how can they be muslims in the first place?