Any means that most likely leads to a prohibition (Haraam) is itself Haraam. However if it was (only) feared that it may lead to a prohibition, then it would not be Haraam.
Article 15
الوسيلة إلى الحرام محرمة إذا غلب على الظن أنها توصل إلى الحرام، فإن كان يُخشى أن توصل فلا تكون حراماً.
