The enemy NPC’s goal is to defeat and foil the PCs. The DM plays the NPC.
The DM needs to make sure that the enemies do a good job to make the game fun for the players.
Hence, the DM, by playing the NPC correctly, will try to defeat and foil the PCs.
This is not adversarial unless the DM is...