It is easy to surmise that it is related to the  bite of a dog. If approach with caution. It is commonly believed that the first used of the phrase can be found in a translation of Aesop's fables.