Dual-Frequency Filtering Self-aware Graph Neural Networks for Homophilic and Heterophilic Graphs