Spatially Resolved Stellar Populations of 0.3 < z < 6.0 Galaxies in WHL 0137–08 and MACS 0647+70 Clusters as Revealed by JWST: How Do Galaxies Grow and Quench over Cosmic Time?