If dogs mate with their owners, there are generally two reasons:
1, the dog is in heat, and it takes its owner as a companion, so it will make such a move.
2. The male dog makes this action to the same sex to declare his status, thinking that the other person's status is lower than his own and should surrender to himself. In this case, don't let the dog hold the thigh, and properly declare the owner's identity.
In addition, every time he does something to you, you should reprimand him loudly on the spot first. After at least an hour, ignore him, turn a blind eye to him, and treat him as air, so that he will know that this behavior is unacceptable to his master and more effective than hitting him. This is equivalent to expelling the dog to the dog. If one time is not enough, repeat it many times, and you can appropriately extend the time of ignoring him every time.