So what you've been seeing isn't a case of users impersonating moderators, but instead users attempting to guide other users on how to use the site appropriately.
On the Stack Exchange network, almost every user has some degree of moderation abilities. A user first gets these privileges at a mere 15 rep- The ability to upvote good content and use several of the system flags to bring bad content to attention of other users. From there, you gain more tools to use to help moderate and curate content the more reputation you get.1
Now, the moderators you're thinking of are the typical "all-powerful" users that help keep a community in line. We have those here as well, but these elected, and occasionally appointed,2 officials are denoted with a diamond (♦) next to their usernames. Note that employees of Stack Overflow can also have the diamond,3 and the Community ♦ user has one.4
There are only a handful of moderators per site, so the community at large is expected to help flag, delete, edit, and otherwise moderate content. If regular users did not have access to these features, we would need, likely, hundreds of mods just to run Stack Overflow and keep the quality up. It would also likely have been harder, if not impossible, to get to the point that we are today.
To answer your main question, yes it is wrong to impersonate a mod. However, as the ♦ character is not allowed in usernames, any user who has been around long enough to learn how to pick out an elected moderator will know the impostor is, well, being an impostor. However they are trying to use that pretend power can be flagged and brought to the attention of the diamond mods to handle.
1 To see some of the other abilities you can unlock, and when, check out the Privileges page.
2 Appointed moderators are usually a result of being almost elected, and then a position suddenly needing filled and a runner-up in the election being asked to step up. (Thanks to TylerH for pointing this out in a comment.)
3 Note that not all employees have diamonds on all sites- Rather, they only have diamonds on sites they need them for.
4 The Community ♦ user is a sort of an automated user that owns abandoned bounties and votes (from account deletion or disassociation), among other things. You can check out the list in its "About Me" section on its profile.