On the 2011+ Edge, the door ajar sensor tends to go bad, and you have to slam the door one or more times to get the door to latch properly. Hope that's not the case here, but if the grease does not work out, worth looking into. There's a servicing TSB for the sensor, which tends to be a short-term fix, and even replacing the sensor isn't that great of a fix.