Being gay is not a crime, but in some states making homosexual advances toward someone can be considered assault or a threat so the cop could legally claim self defense if he were to hit you and arrest you. especially since you were dumb enough to admit your plan on a public forum that it was simply to make him angry.