Your door switch is probably going bad. I have had this problem with my coupe. The first time it happened was about the time I was having battery problems, so I replaced it. While doing so the body control module (computer) must have reset because the window resumed proper opperation. I recently started having this same problem again until the window would not roll up, so I disconnected the battery for about 30 minutes and then reconnected. I was able to wind the window all the way back up and it stays up while opening and closeing the door, with no clearance issues, and I can roll it up and down. This is a temporary fix until I replace the door latch that contains the door ajar sensor. This should help.