It's only possible server-side, which even then is only setting a max render distance and can't directly change it besides lowering it to whatever the provided maximum is. As MineOrDie_ said, you can sort of emulate this using a blindness effect or using a bossbar. Or you can just go the old fashioned route and send a title/message asking the player to change their FoV/render distance.