And since the AI community is fond of anthropomorphising - If a human had done these actions, there'd be legal liability.
There have been such cases in the past. Where the coercion and suicide has been prosecuted.