The ndp -a -n command isn't harmful on its own. But, a bad actor could use it to gather info on a system. Good security stops unauthorized users from using it.