Wigan Athletic squandered a succession of gilt-edged opportunities at Wimbledon before being sunk by the only goal with two minutes left.