actually, I think it’s a little different than both of the above: it’s not about morality, it’s about reality…
the “point” is that there is no virtue to be gained at all, regardless of what you do, or how you do it, regardless of your actual intentions, because ultimately there is nothing to gain in general
the “ideal” of Ch’an is the Heart Sutra - which essentially is saying that beyond all phenommenon lies emptiness: no gain, no loss; nothing soiled, nothing pure; so the very notion of “virtue” was simply a relative construct that inherently was empty - whether you do something virtuous or evil, it is still, intrinsicly, without substance, fundamentally
so Ch’an is not concerened with things like character, good deeds / intentions - these are all things still bounded up in mind; Ch’an triesd to break out of this, to literally shut the conditional mind down in order to enable one to see clearly the nature of things such as they are: so you could do all those “good” things, it’s just a matter of seeing clearly why - even if you clearly saw that you were simply doing them to curry popular favor, at least you weren’t fooling yourself…
remember, this was written during a time when the vogue was doing good deeds to pay off your “karmic debt”; think of Ch’an as sort of the Lutheran version of Buddhism, telling people that simony wouln’t get you anywhere…it wasn’t a very popular viewpoint at all…and telling the Emperor what he told him was like telling George Bush that Iraq was a huge mistake - to his face, in front of the White House Press Corps, while he was giving you an award
now, don’t get me wrong - Boddidhrma wasn’t telling the Emperor not to do those things - he was just taking the question as an opportunity to give him insight into the ultimate nature of reality - in a way, perhaps it was a “reward” to the Emperor for even doing those thing - I mean, it’s actually about as direct an answer that you would ever get froma a Ch’an master - he could have walked up and slapped the Emperor in his face and let him figure it out that way, or muttered something cryptic about going out 4 gates in 4 different directions simultaneously…