Hello Mastani !
You are young and living in a society where it is very tough to stop yourself from indulging in bad habits but as the test is difficult the result would be the best. Illegal sex, as it is illegal, it has many bad impacts on somebody's personality, morality etc. It could lead to the miserable death and i m sure that if Allah would want to punish somebody then the use of condemns or other preventives used to remain safe can never help anybody. It is a greed which could result in making you ruining the relationships which are noble and precious. On one stage could make you think that you have lost your self respect, peace of mind, career developments, relationships etc.
I pray to Allah that he may help us to keep our modesty safe.