Create a firewall between your personal and professional time. Another name for this is “setting healthy boundaries”.
Always create new accounts for anything work related -- GitHub, Apple ID, whatever.
Don’t install work apps on your personal phone. Don’t enrol your personal phone in corporate MDM. If they want you to use a device for work, ask them to give you one.
Don’t do personal stuff on your work devices. Don’t do side project work on your work devices. Only do work for your employer on your work devices. Turn it off when you’re done work and leave it off until you start work the next day.
Be very clear on all your contractual obligations related to this before you start a new job. Ask to see ahead of time all the paperwork they will ask you to sign, so there are no last-minute surprises (“oh, you want to own anything I create outside of working hours?”).
Firewall yourself to protect yourself.
Edit: One more: don’t use corporate WiFi with your personal devices
Always create new accounts for anything work related -- GitHub, Apple ID, whatever.
Don’t install work apps on your personal phone. Don’t enrol your personal phone in corporate MDM. If they want you to use a device for work, ask them to give you one.
Don’t do personal stuff on your work devices. Don’t do side project work on your work devices. Only do work for your employer on your work devices. Turn it off when you’re done work and leave it off until you start work the next day.
Be very clear on all your contractual obligations related to this before you start a new job. Ask to see ahead of time all the paperwork they will ask you to sign, so there are no last-minute surprises (“oh, you want to own anything I create outside of working hours?”).
Firewall yourself to protect yourself.
Edit: One more: don’t use corporate WiFi with your personal devices