If you change the device number on the server, the old name is also remembered, and the device will change its device number once it goes online.
To prevent the device loss, if you change the number of the offline device, you won't be able to change it again until it confirms the name change.
If you remove the device and add the device with a new number, in this case the device will be lost.