You are trying to tell that it is a punishable offence by law.? - does it belong to penal code then.?
Please revise your knowledge on this particular matter my friend.
In Sri Lankan law, There is no legal obligation for 2 consenting adults ( married or otherwise) to have sex.
If it is illegal...