One way that you can avoid these instances is to tack electrical cord under the carpet or against the wall rather than allowing it to lie across common walkways.
Common steps taken include moving house plants out of reach, covering electricalcords with tubing, applying anti-chewing substances to woodwork and furniture, and blocking access to spaces under and around furniture, etc..