It's not right to complain to people who work at the supermarket about the cost of living being high.
この場合、次のような言い方ができますよ。
ーIt's not right to complain to people who work at the supermarket about the cost of living being high.
「物価高についてスーパーの店員に文句を言うのは間違っている」
ここの「間違い」は not right と言えます。または It's wrong to ... とも言うことができますよ。
ご参考まで!