Setting boundaries for prior distributions

Okay, is there a way to prevent the error from occuring in the likelihood part?