Bed sharing

For the mommas that bedshare how do you prevent your baby rolling off the bed once they start rolling/crawling? My son has started rolling and he does not want to sleep in his crib…like at all,so already tried that😩