unlocking xs max

i have a question

if i unlocked an xs max dual sim, so when it's unlock, will it unlock just one imei or two imei?

also unlocking means even if i reset the phone, it will stay unlocked, right?

because i have a weird situation with my iphone

i know my iphone is unlocked because i tried with at&t, verizon, and t mobile sim. then i reset the phone (erase all content and setting) and then i insert cricket sim card, of course the phone work after that.

then after cricket sim, i insert overseas (non vzw, at&t, t mobile), then the phone say 'sim not supported', after that i insert a vzw sim again, now vzw sim that used to work before, it's no longer working.

so what's wrong with that?

thanks,
If your phone is carrier unlocked then it will work with any supported SIM or eSIM.

Original thread: https://forums.imore.com/threads/unlocking-xs-max.410672/