Artificial intelligence is playing a big role in creating online spam and scams — but also in combatting it