No judge, legal practitioner or officer connected with any court of justice shall buy or traffic in, or stipulate for, or agree to receive any share of, or interest in, any actionable claim, and no court of justice shall enforce, at his instance, or at the instance of any person claiming by or through him, any actionable claim so dealt with by him as aforesaid.