I used to think that, the motor is failing, I had the same issue. The window would be going up then would automatically go back down as if it had detected something blocking it. Used to gently push it away from the rubber or open the door to preveny this from happening.
Bought a new motor from ZMANALEX and refurbed the old one which I sold here