Word for someone who unnecessarily/unlawfully accuses another
If the person is making a false accusation, they are a slanderer. (Libeller if done in writing).
If they are making an accusation they are an accuser.
Accuser has a number of synonyms which you can check for yourself.