Going to the nether and back won't update worldborder size for the client.
The worldborder is 8x smaller in the nether than it is in the overworld so it is very likely to spawn outside of the worldborder when going to the nether. There is no way back because you can't move out of the portal to re-enter it.
If you set your gamemode to 1 then you're able to go through the portal again. Although when arrived in the overworld it still applies the bordersize of the nether to the player which means he can't move. Relogging nor restarting Minecraft fixes it. You don't take any suffocation damage though.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.