There are simple safety precautions.
Stop your dog from sleeping on your bed with proven training techniques. Learn how to create a comfortable alternative sleeping space.