Its not exactly the same but its a felony to threaten the president in the US. US freedom of speech is not close to absolute with all kinds of exceptions made over the years, from yelling fire in a theater to verbal harassment.
I don't understand why so many people think this isn't protected. The courts ruled it was.