No way to block spam messages
On the iPhone there is a way to block the number much the same way as blocking phone calls. But on the Mac, running Catalina, there is no such option. The closest it comes is to offer an 'ignore' option.
iMac Line (2012 and Later)