The sentences, statements are reversed order repeated to produce dramatic or artistic effect
Here are few examples in the form of funny jokes that has used chiasmus rhetorical device:
Examples
1. A fine is a tax for doing wrong. A tax is a fine for doing well2. College: A place where some pursue learning and others learn pursuing.3. Some people love to go to movies and some people go to the movies to love.4. Our brain is a masterpiece, its divided into two parts left and right. In left nothing is right and in right nothing is left.5. Don't sweat the petty things, and don't pet the sweaty things