Getting caught by the rozzers as a punter in a brothel, when they are doing the raid, ain't a disaster
Not ideal, will turn your boner into mr floppy, but unlikely that anything will happen to you
They might take your details to put the wind up you but not bother recording the info / doing anything with it [better things to do]
Loads of parlours are effectively brothels but well run they don't get targeted
Just don't behave like a tosser, when you are trying to find your trousers / putting your undies on back to front & buttoning up your shirt lop-sided
What could happen to you changes big style if it transpires that the burds have been trafficked
Even worse if they are under age
Either can be a criminal conviction & if both you really could be up shit creek without .....