We have an expression in Hungarian that literally translates to "falling off at the other side of the horse" meaning approaching something in a single way without thinking of any other approach.
An example:
Prefer reactive programming over iterative but you should "not fall on the other side of the horse".
The above sentence means you should generally use reactive programming to solve the task, but you should not use it where it doesn't make any sense to do it.
Is there any similar idiom/expression in English for this?