No. The law is written more clearly in Pennsylvania Title 18:
- Official oppression. A person acting or purporting to act in an official capacity or taking advantage of such actual or purported
capacity commits a misdemeanor of the second degree if, knowing that
his conduct is illegal, he: (1) subjects another to arrest,
detention, search, seizure, mistreatment, dispossession, assessment,
lien or other infringement of personal or property rights; or (2)
denies or impedes another in the exercise or enjoyment of any right,
privilege, power or immunity.
I've seen complaints made under Official Oppression statutes against police officers, but they have all been rejected because the statute requires not only that the act be performed in one's official capacity, but also that, beyond a reasonable doubt, the official knew the act to be illegal. Since police are authorized in the course of their duties to commit on behalf of the state all of the torts and crimes enumerated under Official Oppression, proving that they knew that a particular instance was illegal is practically impossible if they don't outright admit it.
Maine's statute further requires that intent to benefit the official or harm another also be established beyond a reasonable doubt.
Convictions under Maine's Official Oppression for refraining to do something are even more difficult. At least for police the threshold for a "duty to act" may be insurmountable, as suggested by the frequently-cited Warren v. District of Columbia.
(Amendment: I just found this telling article. Of note: "Convicting a police officer of a civil rights violation is one of the toughest challenges a prosecutor can face, numerous legal and civil rights experts told the Trib.")