Not sure. I've never had a dog that did any of those things. Just like people, there are smart and stupid dogs.
My last dog (passed away last year) would have still defended my family to the death even when she lost the use of her back legs. That dog also saved my baby niece's life by alerting us that she was choking at night.
If YOU do them, it's off to the rubber room with ya....