TextureImporter's maxTextureSize doesn't actually apply the size change

    private void OnPostprocessTexture(Texture2D texture)
    {
        TextureImporter textureImporter = (TextureImporter)assetImporter;

        textureImporter.maxTextureSize = 16384;
        textureImporter.SaveAndReimport();
    }

even though i can see that the texture size has been changed to 16k in the UI, it doesnt actually apply it
it only takes effect if i lower the value and then it comes to its senses and sets it to 16k

My bad, needed to use pre instead of post