Sigmund Freud said this quote

Instinct of love toward an object demands a mastery to obtain it, and if a person feels they can't control the object or feel threatened by it, they act negatively toward it.