How could someone else get access to my iMessages?
To get into your iMessages, someone needs your Apple ID and password, plus a two-factor code sent to one of your trusted devices if you have that turned on. Without those, nobody can read them, not even Apple. Keep those credentials private and your messages stay private.