You need to use Conditional Formatting, formula option.

Assuming both G2 and M2 contain valid times (only - not a date/time), then you could use this formula

=AND(G2<0.75,M2<0.5412)

Time is a fractional value of a day.
A day is the whole (1). One hour = 1/24 of a day = 0.041667.
6:00 pm = 18 hours, so 18*0.41667 = .75
1:00 pm = 13 hours, so 13* 0.41667 = 0.5416677