Mods of any kind are not encouraged by WhatsApp. You are likely to get blocked when you use mods such as WhatsAppX, so you should use a different account for the mod. Nevertheless, your device will not be at risk of malware.