OP's specific question relates to purchasing alcohol rather than CBP / TSA or apparently government functions.
That is typically a state "safe harbor" matter. In other words, there is a list of approved ID's. If someone purchases booze with a fake DL, the licensee is off the hook. If the the sale is made based on an ID not on the list and it turns out to be fake and the individual is not of age, the licensee is SOL.