Indeed the simple solution is to just message and ask. I’ve had these before as well. Sometimes it can be baiters (especially if your flying something expensive) but other times it could be someone who does genuinely want to help with something, or vise versa.
For instances there’s a handful of older players who will offer fleets to try to help new players out (from boosts if your in the same area for mining, ratting, and even missions, or to see if you need help in general).
My advice, from experience, is to always just go with caution when accepting an invite from someone you don’t know to protect yourself.
Hope this helps and best of luck out there!