The article even gives a better example here: casually 
    introducing yourself to the CEO and making a joke. 
    [...] How am I supposed to know which authorities it's 
    okay to make jokes with? 
Well, it's a good example.... but not in the way you or the author necessarily intend.The answer is right there in front of you: you don't fucking know!
You -- spectrum or no spectrum -- don't know who you can joke around with until you actually know them. Humor is hard, even for comedians, and successful humor relies on some kind of rapport or shared sensibility between parties.
Walking up to a stranger, CEO or otherwise, and cracking a joke immediately is actually fairly bizarre behavior and there's a good chance the joke is going to fall flat. Also sometimes you'll get lucky and make a friend for life or something, but it's a total dice roll and it is frankly an idiot move to risk your professional standing on it. I think that's a thing you can just learn and memorize whether you're on the spectrum or not.
That said, I as a lowly engineer have successfully joked around with a lot of C-level types at large-ish companies.
More than anything else, circumstances matter. Is this a social situation? Are you interrupting them? Are you introducing yourself out of the blue and expecting them to laugh at a joke like a total weirdo? These things matter.
Assuming you're actually interacting in a social situation...
As a general rule they love to laugh and pal around like normal humans. Getting along with people and being personable is actually a pretty big asset when it comes to climbing the ladder and more often than not these people have it. If you're skilled at humor you'll know how to feel out what kind of humor they're gonna laugh at and which kinds of humor are safe. If you're not good at humor and intuiting things, just fucking know that and play it safe.