Is it save to upgrade from 5087 directly to 5845 ?
Yes, its safe.
Simply download the latest ISO in your user portal, and upload to the server, and reboot.