Is it bad to use a razor on your feet?

The razors you use for shaving I use it on the bottom of my feet to peel off dead skin and to make it smoother. Is it okay to use? I tried foot scrapers and scrubs and pumice stones but nothing helps. My feet always get rough and peely😞