Most Idaho cities and counties have zoning regulations with which businesses must comply. Before signing a lease or purchase agreement, first check with your city or county planning and zoning commission to be certain you can legally operate your type of business in the area you have chosen. For example, you would not be able to establish a construction business, including a home based one, in an area zoned as residential. As you discovered, If a business is opened in violation of zoning regulations, it can be immediately shut down when a zoning inspector finds it or when someone complains. It may then be difficult to terminate a lease or purchase agreement.
Some businesses, such as churches and day care centers, may be able to secure a conditional use permit to operate in an area not specifically zoned for businesses. Be sure to find out if your business qualifies for a conditional use permit and can meet all the requirements before you open it. If you attempt to operate your business without a permit, it will be closed when the city or county finds you.