Hi,
A near occasion of sin isn’t a sin but an occasion where one may be tempted. To put oneself in such a situation is imprudent, but not sinful in itself. However, if one deliberately puts oneself in such a situation in the hope of sinning, one has already sinned by willing to sin. Sin begins with the will to sin.
Fr. Vincent Serpa, O.P.