Rosalinda has a point, but
there's no time limitation at all. If your relationship with your company is not that bad, or you think your company won't do such thing to you, you may change your job immediately after your I-485 approval and passport stamp, even before you get your physical green card. That happens a lot actually.