We report the results of combined analyses of X-ray and optical data of two galaxy clusters, CL 0024$+$1654 and RX J0152.7$-$1357 at redshift $z = 0.395$ and $z = 0.830$, respectively, which offer a holistic physical description of the two clusters. Our X-ray analysis yields temperature and density profile of the gas in the intra-cluster medium (ICM). Using optical photometric and spectroscopic data, complemented with mass distribution from gravitational lensing study, we investigate any possible correlation between the physical properties of the galaxy members, i.e., their color, morphology, and star formation rate (SFR) with their environments. We quantify the properties of the environment of each galaxy by galaxy number density, ICM temperature, and mass density. Although our result shows that the two clusters exhibit a weaker correlation compared to relaxed clusters, it still confirms the significant effect of the ICM on the SFRs in the galaxies. Various physical mechanisms are suggested to explain the relation between the properties of galaxies and their environment.