To make the chili sugar rim, simply mix equal parts sugar and chili powder on a plate, adjusting the chili powder to your liking. Then, run a lime wedge around the rim of your margarita glass and dip it into the chili sugar mixture, and you’re ready to fill the glass and enjoy your sweet and spicy pineapple margarita.