The law everywhere does prohibit a LOT of jerk behaviours and a lot of jurisdictions have jurisprudence (I live in a common law country where jurisprudence is enormous) that amount to ''don't be a jerk''.
Well the law shouldn’t be responsible for stopping someone from being a “total jerk”, but yes you should be upset at the law for not meeting your expectations