One should not play a practical joke on someone if it shows contempt for that person or if one believes it might bring significant harm to that person
Someone was harmed as a result of my practical joke. Thus, even though it did not show contempt for the person I played the joke on, I should not have played it.