There are safeguards: This works only for one community per post, the second and later ones are ignored.
It only works in top posts (toots), not in replies, replies also cannot post it to other lemmy communities.
So one mastodon thread can only appear in 0 or 1 lemmy community, no more, they can't spam from there.