If you change name servers that means you will be disconnecting the zone edit name servers and no longer using zone edit for DNS.
And you do so at your registrar.
If you want to continue to use zone edit as your DNS provider- then just update the MX record to use the Office 365 servers instead.