Uncertain, possibly from English jackass.
Practice speaking and memorizing "jegue" and many other words and sentences in Portuguese.