If all “proper” users are on paid relays, the spammers will have to also join paid relays and pay for them, which means they have to spend money to join (say, a yearly relays fee for each npub). And because paid relay operators will be quite vigilant with keeping their relays clean, it’ll be cost-prohibitive for spammers to do so.