+1(514) 937-9445 or Toll-free (Canada & US) +1 (888) 947-9445
I mean if my boyfriend calls immigration and tells them we no longer together don’t I need to exit the country
No. Your visa approval has nothing to do with your relationship. You are a visitor and can stay up to 6 months or however long CBSA decided upon your entry.
 
If am on temporary resident status how do I apply for a work permit or am I allowed to work

You are not allowed to work.

You need a work permit to be allowed to work. To qualify for a work permit, you need a job offer from an employer in Canada and that employer needs the obtain an approved LMIA.
 
If am on temporary resident status how do I apply for a work permit or am I allowed to work
As of 28 August 2024, you can no longer change a visit visa to a work permit inside Canada. If you do get a job offer, you have to apply for a work permit from your home country.
 
If am on temporary resident status how do I apply for a work permit or am I allowed to work

What was your true intention all along ?

You came to visit . That relationship broke down . You return home

Why all of a sudden are you mentioning about wanting to work ?
You had to have shown ties to visit here
Job, finances etc