There are a few ways to identify an imposter QR code without scanning it, such as:
Check the design of the QR code.
Look for errors.
Check the location where the QR code is placed.
Verify the source.