One could argue that if an artist breaks a law to make a statement (about either the law itself or wider sociological issues), then your perspective of the morality of the act could be influenced by whether or not you agree with the artist's statement.
Also, I think you're conflating legality and morality. I can think of situations for all 8 cases of (legal|illegal)(moral|immoral)(agree|disagree). However, you're probably right that agreement/disagreement influences morality judgments.
I do not know about Shakespeare 'breaking' any rules, or any pre-XIX Century painter. Or the Greeks, you know? What rules did the Parthenon's architect break? Or the sculptor of the Laocoon group?
The 'breaking rules' stuff is all very well for some things but it is not the definition of art. Please.
(Spanish examples because I am a Spaniard, but you understand).
Edit: romantical/romantic.
Some would argue that even those now 'breaking rules' have been subsumed by the massive market around art - as soon as the price tag is astronomical, and the method of display only a safe gallery, the rebellion has been captured in aspic and rendered safe.
Banksy is an interesting take on this as much of his work is trying to break out of the confines of the gallery, but he has still been trapped in a system he's at least partly unhappy with by the rising value placed on his work, and has resorted to trying to undermine this with stunts like that $60 sale. It's interesting that the perceived value of the spraypaint with his signature has resisted even that sort of rebellion.
So I don't think saying it must be provocative or break the rules is a very good definition of art, indeed, for most people, even those buying faintly rebellious work in the 20th/21st century, art is decoration (I don't mean that in a derogatory way, but that is how it is consumed), rebellion is an optional extra.
You are indulging in a circular definition in which most creative stands in for best or most worthy art, which of course depends on the premise which you set up in the first place, and which is a peculiarly 20C view of art. Only with the break down of the patron system and in quest of a new definition of art and a new place in the world did artists turn to the idea of being a creative force challenging the status quo (economic and artistic).
I don't think Michelangelo for example would have recognised your definition of his art as only meaningful in as much as it breaks the rules. His art was almost all in service of the church, which was the dominant political and economic force of the time. You can try to rewrite the history of art as a history of innovation and rebellion, but why bother? Why not understand it in its totality, which is certainly not as an instrument of rebellion, or even as a force for change - for much of the history of art change was gradual and consensual over decades and centuries, and nothing to do with challenging authority, quite the reverse, it was usually in the service of authority, used as propaganda, teaching materials and social proof. Art was a useful craft for most of its history.
Great art can include rebellion, but it is not confined to it, and frankly I think you're defending a pithy but inaccurate slogan which falls far short of capturing the full role of art in our society.