Sexual immorality is not just sexual intercourse outside of marriage. It includes sexual touching, lustful behaviour & even what we look at. The Bible says, to avoid even a hint of sexual immorality.
But when it comes to other behaviour, you must use your own wisdom as to whether it is sexual or not.
Take hugging for example. There is a type of hug that is completely non-sexual. Then there are other hugs that begin to ‘hint of sexual immorality’. We know the difference, and we are called to avoid even a hint of sexual immorality.