From a legal standpoint, Nintendo is completely within their rights to protect their IP. No question about that.
From an ethical standpoint, it's much more iffy, IMO. Nintendo has a history of being absurdly overprotective of their IPs, even throwing DMCAs at non-profit fan games just because...