I had a similar problem. Take the door card off and make sure that the window is still on its track. If it is, take a look at the arms that hold the motor onto the door. One of the arms was loose on mine, so when the window went down or up, the motor would move out of place and screw up how it would go up and down, causing it to open when it cant close properly. All I had to do was move the arm lower and then tighten the bolt that held it there and now it works like a charm. Why they would make it so that there is so much space for the screw to hold it in to move I'll never understand.
I hope this makes some sense to you, because after reading it over it feels like it may be a little vague for anyone but me. lol