From Longman Dictionary of Contemporary Englishget your leg overget your leg overBritish English informal not politeSEX/HAVE SEX WITH to have sex with someone → leg
Examples from the Corpus
get your leg over• But the only thing he got his leg over was the fence at Peter Pan's Playground.• With news like that, you can understand him wanting to get his leg over an old bike and ride all night.