When you close the EXS24 Sampler Instrument Editor, a dialog appears, asking if you want the instrument changes to be stored. Even if you choose not to save the changes, the sampler will still play the edited version until you quit and restart Logic Pro.
When you do quit Logic Pro, you will be asked again if you want to save the changes to the instrument. If you want to discard the changes, click Don't Save in the dialog.
If you don't want to restart Logic Pro
You can temporarily save the edited instrument using a different name and then load the original instrument.