Putting these sort of limitations on yourself, from my experience, will dampen the effort that you put in to achieve new levels, if you even try at all. That reduced effort will result in exactly what you predicted for yourself.
So, begs the question, what sort of effort have you put in to increase your pay past the median dev salary.