tasks for active accounts (customers)

hello ,

i want to make a custom warning message before saving tasks for customers where status=inactive or for example

in lookup accounts if customer status=inactive make the record color red

hank you all