If you are sure that your certain action will definitely lead someone to commit a sin, you should avoid such act which will lead someone to commit a sin. Even if your intention is not to cause wrongdoing, but if you are sure about the result, you must refrain from such act which lead someone to sin.
Wassalam.