Synthesis, Characterization, and Biological Evaluation of Tetrahydropyrimidines: Dual-Activity and Mechanism of Action