That's true since attacking the first enemy to pass a doorway is a typical trigger which means we should never use "first creature" as it can mean your trigger could be an ally of yours too
Using qualifier like "the first" or "the last" also restrict your trigger further. Simply readying to attack when an enemy pass the doorway leave you open to attack any enemies that will do so rather than the first of them for exemple.
I don't think so Plague, because once the ready action triggers, you have to use it or lose it. Since the 'first' enemy walking through a doorway would qualify as 'any' enemy, the Ready action is triggered.
Maybe I misunderstood you.