some people do use rifle primers in magnum pistol loads, it is safe to do as long as you work your loads up slowly while watching for over pressure.
the only real way that is safe is to use rifle in pistol not the other way around. the rifle primers are a little thicker, so weak firing pin hits can cause misfires, where as a pistol primer in a rifle might blow out the primer