It is a gray area and often those are the most dangerous. I encourage you to take the narrow path. Keep in mind
1 Thessalonians 4:3-5 For this is the will of God, your sanctification; that is, that you abstain from sexual immorality; that each of you know how to possess his own vessel in sanctification and honor, not in lustful passion, like the Gentiles who do not know God;
I think touching yourself, even done without lustful thoughts if you can manage that, still opens the door and establishes a stronghold. It becomes easier to have those thoughts when you find someone you are interested in and begin to try to justify it a nd in doing so dishonor that person. Take the safe road and abstain is my advice.