Wilde , encouraged by Douglas and against the advice of his friends , initiated a private prosecution against Queensberry for libel , since the note amounted to a public accusation that Wilde had committed the crime of sodomy .
As sodomy was then a crime , Queensberry 's note amounted to a public accusation that Wilde had committed a felony , forming the legal basis for libel charges .