Apple has a support document with instructions on how to do so:
To report unwanted iMessage messages to Apple, please send an email with the following details to: firstname.lastname@example.org
Include a screenshot of the message you have received.
Include the full email address or phone number you received the unwanted message from.
Include the date and time that you received the message.
Good to know, as occasionally I receive iMessage spam.