I understand that you received a text message about a possible malicious email. A link was provided for you to click and that led to the Apple Support website.
That text message was a scam message to get you to click on the link and have you enter your Apple ID and Password which the sender of the text can capture. More than likely the Apple Support page that you were led was a fake site.
You were not being hacked but rather were being phished for your Apple credentials. If you entered your Apple ID and Password after clicking on that link, then change your Apple ID password by opening Settings 👉 Apple ID (Your Name at Top) ➡️ Password & Security ➡️ Change Password. If you did not enter your Apple ID and Password on that link then you have nothing to worry about.
________________________
All about scams and phishing -
Beware of ➔ Phishing & Other Suspicious Emails
Know how to Identify legitimate emails from the App Store or iTunes Store
Avoid phishing emails, fake 'virus' alerts, phony support calls, and other scams ➔ Use these tips to avoid scams and learn what to do if you think your Apple ID has been compromised.
Axel F.