In general... don't do it. (Unless they are a short stack)
The problem is that against their range of AA-JJ and AK you are a 47 to 53 underdog.
However there are some opponents that always shove AA and KK if they are 3-bet thus replacing the 4-bet with a shove, so if you take those
hands out of their 4-bet range you are about a 55 to 45 favorite.
It is a pretty thin line and shoving your stack on a 55 to 45 difference is going to be pretty high variance, so get ready to get hit with some pretty bad beats.
That being said it is all about what their range to 4-bet with is, and if you can narrow that down you can make a more correct decision.