Once you are established on a published segment of the approach and cleared for the approach, you may descend to the published altitude for that segment of the approach.
In this case, you would be "legal" to descent to 2500' and intercept the G/S at that altitude. Personally, I would just maintain 4000' and intercept the G/S at that altitude. But that's just my preference.