A technological countermeasure would be to make it like an airlock - you have to get through the first set of gates (which won't let you return), and then have to tap your card to pass the second gate to finally exit.
Obviously, this is not a realistic solution - building new exit gates is simply not worth it.
Practically, such behavior if done repeatedly can be detected as an anomaly in card usage patterns, and a human reviewer can surely figure out what you're doing.