There is an option for the seller to automatically extend the auction by 5 minutes. If a bid is placed within 5 minutes of the auction’s closing time, then the auction’s end will automatically extend for another 5 minutes to allow new bids. This extension repeats if there are additional new bids.
If the option is not set for the auction, you better off placing your highest bid in the last minutes to increase your chances of getting the item.