I want to buy an iphone 5 but live in mexico half the year?

So If I buy a plan to go with the phone in Canada am I able to unlock the phone and use my Mexican chip in Mexico and the Canadian chip in Canada? Please give me all the advise you have on this I really want to know everything and make sure it is COMPLETELY legal.

Yes, you can have the phone unlocked here and install the chip from the Mexican carrier you use and it will work just fine