Lock the razors in a box, put them in the garage etc.
My kids know very well that knives/razors and other sharp things are not toys.