If you want them to get that close to you so that rock salt has an effect go for it.
I wouldn’t let them get any closer than a load of 8 or even 6 would give them a good reason to turn around.
Awww come on....you can street sweep with rock salt. lol