Some versions of Realms may allow you to back-up the data from your Realm, in which case you may be able to download the data to your device and use it with your own (legitimate) version of Minecraft.
Some versions of Realms may allow you to back-up the data from your Realm, in which case you may be able to download the data to your device and use it with your own (legitimate) version of Minecraft.