There are a couple ways to beat status.
1. Lum berry
- if held by a Pokemon, it heals any status condition once
2. Natural Cure/Insomnia/Water Veil/Limber/Immunity etc.
- these are specific abilities that allow a Pokemon to be immune to certain kinds of status
- for example, water veil prevents the Pokemon from getting a burn while natural cure removes all status conditions when the Pokemon switches out
3. Have a heal bell/ aromatherapy member on your team.
- when using this move, all Pokemon's status conditions are healed
As for alakazam, try using a Pokemon that is faster/ or has a choice scarf (boosts speed by 1.5, locks user in a move). For example, try using an aerodactyl or a choice scarf hydreigon.